/*
Theme Name: Beyond Systems
Theme URI: https://www.wegobeyond.co.uk/
Author: Beyond Systems Limited
Author URI: https://www.wegobeyond.co.uk/
Description: Classic WordPress theme for Beyond Systems Limited with a full Customizer options panel (Esotera-style live editing): brand colours, fonts, header/footer, and show/hide + drag-and-drop ordering of homepage sections. Dark navy brand design.
Version: 3.7.14
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beyond-systems
Tags: business, custom-colors, custom-menu, custom-logo, featured-images, two-columns, full-width-template, theme-options
*/

  :root {
    --navy: #143140;
    --navy-2: #0f2a38;
    --navy-3: #1a3d50;
    --blue: #2762ff;
    --blue-light: #4d7fff;
    --teal: #00c9a7;
    --teal-dim: #00957c;
    --red: #b01c2e;
    --red-light: #d42033;
    --red-dark: #8a1522;
    --white: #ffffff;
    --off-white: #e8edf8;
    --muted: #8a9bbf;
    --border: rgba(255,255,255,0.08);
    --card-bg: rgba(255,255,255,0.04);
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Figtree', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--off-white);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  a { color: inherit; text-decoration: none; }

  /* ─── TOPBAR ─────────────────────────────────── */
  .topbar {
    background: rgba(20,49,64,0.9);
    border-bottom: 1px solid var(--border);
    padding: 0.45rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
  }
  .topbar a { color: var(--muted); transition: color 0.2s; }
  .topbar a:hover { color: var(--teal); }
  .topbar-left { display: flex; gap: 1.5rem; align-items: center; }
  .topbar-right { display: flex; gap: 1rem; align-items: center; }
  .oracle-badge {
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
  }

  /* ─── NAV ──────────────────────────────────────── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20,49,64,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 64px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .logo-accent { color: var(--teal); }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    flex: 1;
  }
  .nav-links > li { position: relative; }
  .nav-links > li > a, .nav-links > li > span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--off-white);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .nav-links > li > a:hover, .nav-links > li > span:hover {
    background: var(--card-bg);
    color: var(--white);
  }
  .chevron { font-size: 0.65rem; opacity: 0.6; transition: transform 0.2s; }
  .nav-links > li:hover .chevron { transform: rotate(180deg); }

  .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--navy-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 240px;
    padding: 0.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }
  .nav-links > li:hover .dropdown { display: block; }
  .dropdown a {
    display: block;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
  }
  .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
  .dropdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 0.9rem 0.3rem;
  }
  .dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0.4rem 0.5rem; }

  .nav-cta {
    margin-left: auto;
    background: var(--red) !important;
    color: #fff !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--red-light) !important; }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
  }
  .hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--off-white); border-radius: 2px;
    transition: all 0.3s;
  }
  .mobile-menu {
    display: none;
    background: var(--navy-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .mobile-menu a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--off-white);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu .m-section {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 1rem;
    padding: 0.4rem 0;
  }

  /* ─── HERO ─────────────────────────────────────── */
  .hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 70% 40%, rgba(39,98,255,0.18) 0%, transparent 60%),
                radial-gradient(ellipse 50% 60% at 20% 80%, rgba(0,201,167,0.1) 0%, transparent 50%),
                radial-gradient(ellipse 40% 50% at 90% 90%, rgba(176,28,46,0.12) 0%, transparent 50%),
                var(--navy);
  }
  .hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  }
  /* ─── HEADER BACKGROUND PATTERNS ─────────────────
     Chosen in Customize > Beyond: Theme Options > Hero > "Header background
     style". Each one replaces the .hero-grid overlay only — the navy gradient
     underneath (.hero-bg) is untouched, so the brand colour never changes. */

  .hero-grid { pointer-events: none; }

  /* Dot matrix */
  body.bs-hero-dots .hero-grid {
    background-image: radial-gradient(rgba(255,255,255,0.17) 1.3px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, black 22%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, black 22%, transparent 78%);
  }

  /* Diagonal hatch */
  body.bs-hero-diagonal .hero-grid {
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 15px);
    background-size: auto;
    -webkit-mask-image: linear-gradient(115deg, black 5%, rgba(0,0,0,0.4) 55%, transparent 95%);
    mask-image: linear-gradient(115deg, black 5%, rgba(0,0,0,0.4) 55%, transparent 95%);
  }

  /* Light beams, with a slow sweep across them */
  body.bs-hero-beams .hero-grid { overflow: hidden; }
  body.bs-hero-beams .hero-grid {
    background-image: repeating-linear-gradient(102deg,
      transparent 0 70px,
      rgba(0,201,167,0.09) 70px 72px,
      transparent 72px 150px,
      rgba(39,98,255,0.11) 150px 153px,
      transparent 153px 260px);
    background-size: auto;
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, black 30%, black 70%, transparent 100%);
    mask-image: linear-gradient(100deg, transparent 0%, black 30%, black 70%, transparent 100%);
  }
  body.bs-hero-beams .hero-grid::after {
    content: '';
    position: absolute;
    top: -25%; bottom: -25%; left: -60%; right: -60%;
    background: linear-gradient(102deg, transparent 46%, rgba(255,255,255,0.06) 50%, transparent 54%);
    animation: bs-hero-sweep 9s ease-in-out infinite alternate;
  }
  @keyframes bs-hero-sweep {
    from { transform: translateX(-18%); }
    to   { transform: translateX(18%); }
  }

  /* Circuit grid — the original grid with glowing nodes at the intersections */
  body.bs-hero-circuit .hero-grid {
    background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
      radial-gradient(circle, rgba(0,201,167,0.5) 1.5px, transparent 2.2px);
    background-size: 72px 72px, 72px 72px, 144px 144px;
    background-position: 0 0, 0 0, 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 22%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 22%, transparent 80%);
  }

  /* Contour rings */
  body.bs-hero-topo .hero-grid {
    background-image: repeating-radial-gradient(circle at 76% 28%,
      transparent 0 34px, rgba(255,255,255,0.08) 34px 35px);
    background-size: auto;
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 70% 32%, black 10%, transparent 82%);
    mask-image: radial-gradient(ellipse 100% 100% at 70% 32%, black 10%, transparent 82%);
  }

  /* Soft colour wash — no lines at all */
  body.bs-hero-aurora .hero-grid {
    background-image:
      radial-gradient(ellipse 45% 60% at 18% 28%, rgba(0,201,167,0.16), transparent 62%),
      radial-gradient(ellipse 52% 58% at 78% 68%, rgba(39,98,255,0.18), transparent 64%),
      radial-gradient(ellipse 38% 46% at 52% 8%, rgba(176,28,46,0.12), transparent 62%);
    background-size: auto;
    filter: blur(8px);
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Plain — navy gradient, no pattern */
  body.bs-hero-none .hero-grid { display: none; }

  /* Completely plain — flat navy, gradient removed as well */
  body.bs-hero-flat .hero-grid { display: none; }
  body.bs-hero-flat .hero-bg { background: var(--navy); }

  /* ── MOVING OPTIONS ────────────────────────────── */

  /* Grid lines drifting diagonally */
  body.bs-hero-grid-drift .hero-grid {
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    animation: bs-grid-drift 26s linear infinite;
  }
  @keyframes bs-grid-drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 60px 60px, 60px 60px; }
  }

  /* Dot matrix drifting */
  body.bs-hero-dots-drift .hero-grid {
    background-image: radial-gradient(rgba(255,255,255,0.17) 1.3px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, black 22%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, black 22%, transparent 78%);
    animation: bs-dots-drift 30s linear infinite;
  }
  @keyframes bs-dots-drift {
    from { background-position: 0 0; }
    to   { background-position: 24px -24px; }
  }

  /* Particles rising — two layers at different speeds */
  body.bs-hero-particles .hero-grid {
    background-image: radial-gradient(rgba(0,201,167,0.55) 1.4px, transparent 1.6px),
                      radial-gradient(rgba(255,255,255,0.28) 1.1px, transparent 1.3px);
    background-size: 130px 130px, 190px 190px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 25%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 25%, transparent 85%);
    animation: bs-particles 24s linear infinite;
  }
  @keyframes bs-particles {
    from { background-position: 0 0, 60px 40px; }
    to   { background-position: 0 -130px, 60px -150px; }
  }

  /* Soft colour wash, drifting */
  body.bs-hero-aurora-drift .hero-grid {
    background-image:
      radial-gradient(ellipse 45% 60% at 18% 28%, rgba(0,201,167,0.16), transparent 62%),
      radial-gradient(ellipse 52% 58% at 78% 68%, rgba(39,98,255,0.18), transparent 64%),
      radial-gradient(ellipse 38% 46% at 52% 8%, rgba(176,28,46,0.12), transparent 62%);
    background-size: auto;
    filter: blur(8px);
    -webkit-mask-image: none;
    mask-image: none;
    animation: bs-aurora-drift 20s ease-in-out infinite alternate;
  }
  @keyframes bs-aurora-drift {
    from { transform: translate3d(-2.5%, -1.5%, 0) scale(1.08); }
    to   { transform: translate3d(2.5%, 1.5%, 0) scale(1.16); }
  }

  /* Scan line sweeping down over a faint grid */
  body.bs-hero-scan .hero-grid {
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 25%, transparent 82%);
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 25%, transparent 82%);
  }
  body.bs-hero-scan .hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, transparent 0%, rgba(0,201,167,0.14) 46%, rgba(0,201,167,0.3) 50%, rgba(0,201,167,0.14) 54%, transparent 100%);
    background-size: 100% 45%;
    background-repeat: no-repeat;
    animation: bs-scan 6.5s linear infinite;
  }
  @keyframes bs-scan {
    from { background-position: 0 -60%; }
    to   { background-position: 0 160%; }
  }

  /* Circuit grid with pulsing nodes */
  body.bs-hero-pulse .hero-grid {
    background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 22%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 22%, transparent 80%);
  }
  body.bs-hero-pulse .hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    /* No mask here — the parent .hero-grid mask already applies to this layer,
       and repeating it would square the fade and hide the nodes. */
    background-image: radial-gradient(circle, rgba(0,201,167,0.7) 2px, transparent 3px);
    background-size: 72px 72px;
    background-position: 36px 36px;
    animation: bs-pulse 3.4s ease-in-out infinite;
  }
  @keyframes bs-pulse {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
  }

  /* Radar rings pinging outward over faint contours */
  body.bs-hero-radar .hero-grid {
    overflow: hidden;
    background-image: repeating-radial-gradient(circle at 76% 28%,
      transparent 0 34px, rgba(255,255,255,0.045) 34px 35px);
    background-size: auto;
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 70% 32%, black 10%, transparent 82%);
    mask-image: radial-gradient(ellipse 100% 100% at 70% 32%, black 10%, transparent 82%);
  }
  body.bs-hero-radar .hero-grid::before,
  body.bs-hero-radar .hero-grid::after {
    content: '';
    position: absolute;
    left: 76%;
    top: 28%;
    width: 90vmax;
    height: 90vmax;
    margin: -45vmax;
    border-radius: 50%;
    border: 1px solid rgba(0,201,167,0.3);
    animation: bs-radar 6s ease-out infinite;
  }
  body.bs-hero-radar .hero-grid::after { animation-delay: 3s; }
  @keyframes bs-radar {
    from { transform: scale(0.04); opacity: 0.85; }
    to   { transform: scale(1); opacity: 0; }
  }

  /* Optionally keep page/post header bands plain while the homepage keeps its pattern */
  body.bs-hero-pages-plain .page-hero .hero-grid { display: none; }

  /* Respect the visitor's "reduce motion" system setting: every moving option
     falls back to its still equivalent. */
  @media (prefers-reduced-motion: reduce) {
    body.bs-hero-beams .hero-grid::after,
    body.bs-hero-grid-drift .hero-grid,
    body.bs-hero-dots-drift .hero-grid,
    body.bs-hero-particles .hero-grid,
    body.bs-hero-aurora-drift .hero-grid,
    body.bs-hero-scan .hero-grid::after,
    body.bs-hero-pulse .hero-grid::after,
    body.bs-hero-radar .hero-grid::before,
    body.bs-hero-radar .hero-grid::after { animation: none; }
    body.bs-hero-radar .hero-grid::before,
    body.bs-hero-radar .hero-grid::after { display: none; }
    body.bs-hero-pulse .hero-grid::after { opacity: 0.7; }
  }

  .hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    width: 100%;
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
    background: rgba(0,201,167,0.1);
    border: 1px solid rgba(0,201,167,0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
  }
  .hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }
  .hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    max-width: 700px;
    margin-bottom: 1.4rem;
  }
  .hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--blue-light), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 2.4rem;
    line-height: 1.75;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
  .btn-primary {
    background: var(--red);
    color: #fff;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .btn-primary:hover { background: var(--red-light); transform: translateY(-1px); }
  .btn-ghost {
    background: transparent;
    color: var(--off-white);
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .btn-ghost:hover { background: var(--card-bg); border-color: rgba(255,255,255,0.2); }

  .hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
  }
  .stat-item {}
  .stat-num {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.2rem;
  }
  .stat-sep { width: 1px; background: var(--border); align-self: stretch; }

  /* Slider pills */
  .hero-slider-pills {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .slider-pill {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    width: 280px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    animation: fadeSlide 0.5s ease forwards;
  }
  .slider-pill:hover { border-color: rgba(39,98,255,0.5); background: rgba(39,98,255,0.06); transform: translateX(-4px); }
  .slider-pill.active { border-color: var(--teal); background: rgba(0,201,167,0.06); }
  .pill-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
  }
  .pill-title {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0.2rem;
  }
  .pill-sub { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
  @keyframes fadeSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* ─── SECTION WRAPPER ─────────────────────────── */
  section { padding: 5rem 2rem; }
  .container { max-width: 1200px; margin: 0 auto; }
  .section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
  }
  .section-title {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .section-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.75;
  }
  .section-head { margin-bottom: 3rem; }

  /* ─── INTRO STRIP ──────────────────────────────── */
  .intro-strip {
    background: var(--navy-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem;
  }
  .intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
  }
  .intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
  }
  .oracle-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
  .intro-sub { font-size: 0.9rem; color: var(--muted); }
  .intro-text {
    font-size: 1.05rem;
    color: var(--off-white);
    line-height: 1.8;
  }
  .intro-text strong { color: var(--white); font-weight: 600; }

  /* ─── PRODUCTS GRID ────────────────────────────── */
  .products-section { background: var(--navy); }
  .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
    cursor: pointer;
  }
  .product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--teal));
    opacity: 0;
    transition: opacity 0.25s;
  }
  .product-card:hover {
    border-color: rgba(176,28,46,0.35);
    background: rgba(176,28,46,0.04);
    transform: translateY(-4px);
  }
  .product-card:hover::before { opacity: 1; }
  .product-card.featured {
    border-color: rgba(176,28,46,0.3);
    background: rgba(176,28,46,0.04);
    grid-column: span 1;
  }
  .product-card.featured::before { opacity: 1; background: linear-gradient(90deg, var(--red), var(--teal)); }
  .card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(39,98,255,0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
  }
  .card-icon.teal { background: rgba(0,201,167,0.15); }
  .card-icon.red { background: rgba(220,50,50,0.12); }
  .card-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-light);
    margin-bottom: 0.5rem;
  }
  .card-tag.teal { color: var(--teal); }
  .product-card h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.35;
  }
  .product-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }
  .card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-light);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s, color 0.2s;
  }
  .card-link:hover { gap: 0.55rem; color: var(--teal); }
  .arrow { font-size: 0.9em; }

  /* ─── SERVICES TABS ────────────────────────────── */
  .services-section { background: var(--navy-2); }
  .services-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
  }
  .tab-btn {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
  }
  .tab-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
  .tab-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
  .service-panels > div { display: none; }
  .service-panels > div.active { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .service-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
  }
  .service-item:hover { border-color: rgba(39,98,255,0.3); }
  .service-item h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
  }
  .service-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.75rem; }
  .service-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-light);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
  }
  .service-link:hover { gap: 0.5rem; }

  /* ─── TESTIMONIAL ──────────────────────────────── */
  .testimonial-section { background: var(--navy); }
  .testimonial-card {
    background: linear-gradient(135deg, rgba(176,28,46,0.05), rgba(0,201,167,0.03));
    border: 1px solid rgba(176,28,46,0.2);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
  }
  .testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 2.5rem;
    font-family: var(--font-head);
    font-size: 8rem;
    color: var(--red);
    opacity: 0.12;
    line-height: 1;
  }
  .testimonial-quote {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--off-white);
    line-height: 1.85;
    max-width: 800px;
    position: relative;
    margin-bottom: 2rem;
    font-style: italic;
  }
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .author-avatar {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #003d7a, #0057b7);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  .author-name {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
  }
  .author-role { font-size: 0.82rem; color: var(--muted); }

  /* ─── NEWS ─────────────────────────────────────── */
  .news-section { background: var(--navy-2); }
  .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
  }
  .news-card:hover { border-color: rgba(39,98,255,0.3); transform: translateY(-3px); }
  .news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--navy-3), #1e3a6e);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
  }
  .news-body { padding: 1.5rem; }
  .news-date { font-size: 0.75rem; color: var(--teal); font-weight: 500; margin-bottom: 0.5rem; }
  .news-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
    line-height: 1.4;
  }
  .news-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }

  /* ─── CTA BANNER ───────────────────────────────── */
  .cta-section {
    background: linear-gradient(135deg, #3d0a12 0%, #1f060b 40%, #143140 100%);
    border-top: 1px solid rgba(176,28,46,0.35);
    border-bottom: 1px solid rgba(176,28,46,0.35);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(176,28,46,0.15) 0%, transparent 60%);
    pointer-events: none;
  }
  .cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
  }
  .cta-text h2 {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
  }
  .cta-text p { font-size: 1rem; color: var(--muted); }
  .cta-actions { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

  /* ─── TEAM ──────────────────────────────────────── */
  .team-section { background: var(--navy); }
  .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .team-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
  }
  .team-card:hover { border-color: rgba(39,98,255,0.3); transform: translateY(-3px); }
  .team-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
  }
  .team-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
  }
  .team-role { font-size: 0.82rem; color: var(--teal); font-weight: 500; }

  /* ─── FOOTER ────────────────────────────────────── */
  footer {
    background: #0b2230;
    border-top: 1px solid var(--border);
    padding: 3.5rem 2rem 2rem;
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
  }
  .footer-brand p { font-size: 0.875rem; color: var(--muted); margin: 0.75rem 0 1.25rem; line-height: 1.7; max-width: 300px; }
  .footer-address { font-size: 0.82rem; color: var(--muted); line-height: 1.9; }
  .footer-address strong { color: var(--off-white); display: block; margin-bottom: 0.25rem; }
  .footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 0.55rem; }
  .footer-col ul a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
  .footer-col ul a:hover { color: var(--teal); }
  .social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
  .social-link {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--muted);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .social-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--muted);
  }
  .footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
  .footer-links a { color: var(--muted); transition: color 0.2s; }
  .footer-links a:hover { color: var(--teal); }

  /* ─── RESPONSIVE ──────────────────────────────── */
  @media (max-width: 1024px) {
    .hero-slider-pills { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .intro-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  }
  @media (max-width: 768px) {
    .nav-links, .topbar { display: none; }
    .hamburger { display: flex; margin-left: auto; }
    .nav-cta { display: none; }                 /* free space so the hamburger is reachable; Contact lives in the mobile menu */
    .nav-inner { padding: 0 1rem; gap: 1rem; }
    .products-grid, .team-grid, .news-grid { grid-template-columns: 1fr; }
    .service-panels > div.active { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { gap: 1.5rem; }
    .stat-sep { display: none; }
    .testimonial-card { padding: 2rem; }
  }

  /* ─── SCROLL ANIMATIONS ─────────────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─── LIGHT SECTIONS ─────────────────────────────── */
  .ls  { background: #eef2f9 !important; }
  .ls-w { background: #ffffff !important; }

  .ls .section-title, .ls-w .section-title,
  .ls h2, .ls-w h2 { color: #0b1a3d; }
  .ls .section-sub, .ls-w .section-sub { color: #566280; }
  .ls .section-label, .ls-w .section-label { color: var(--teal-dim); }

  /* intro strip light */
  .ls.intro-strip { border-color: rgba(13,27,62,0.1) !important; }
  .ls .intro-text { color: #1e2d50; }
  .ls .intro-text strong { color: #0b1a3d; }
  .ls .intro-badge { color: #0b1a3d; }
  .ls .intro-sub { color: #566280; }

  /* cards on light */
  .ls .product-card, .ls-w .product-card,
  .ls .service-item, .ls-w .service-item,
  .ls .team-card,   .ls-w .team-card {
    background: #ffffff;
    border-color: rgba(13,27,62,0.1);
    box-shadow: 0 2px 16px rgba(13,27,62,0.05);
  }
  .ls .product-card:hover, .ls-w .product-card:hover {
    border-color: rgba(176,28,46,0.3);
    background: #ffffff;
    box-shadow: 0 8px 40px rgba(176,28,46,0.08);
    transform: translateY(-4px);
  }
  .ls .product-card h3, .ls-w .product-card h3,
  .ls .service-item h4, .ls-w .service-item h4,
  .ls .team-card h3,   .ls-w .team-card h3 { color: #0b1a3d; }
  .ls .product-card p, .ls-w .product-card p,
  .ls .service-item p, .ls-w .service-item p { color: #566280; }
  .ls .card-link, .ls-w .card-link { color: var(--blue); }
  .ls .card-link:hover, .ls-w .card-link:hover { color: var(--teal-dim); }
  .ls .service-link, .ls-w .service-link { color: var(--blue); }

  /* tabs on light */
  .ls .tab-btn, .ls-w .tab-btn {
    color: #566280;
    border-color: rgba(13,27,62,0.15);
    background: transparent;
  }
  .ls .tab-btn:hover, .ls-w .tab-btn:hover {
    color: #0b1a3d;
    border-color: rgba(13,27,62,0.3);
    background: rgba(13,27,62,0.04);
  }
  .ls .tab-btn.active, .ls-w .tab-btn.active {
    background: var(--red); color: #fff; border-color: var(--red);
  }
  .ls .service-item:hover, .ls-w .service-item:hover {
    border-color: rgba(176,28,46,0.3);
    box-shadow: 0 4px 20px rgba(176,28,46,0.07);
  }

  /* news cards on light */
  .ls .news-card, .ls-w .news-card {
    background: #ffffff;
    border-color: rgba(13,27,62,0.1);
    box-shadow: 0 2px 16px rgba(13,27,62,0.05);
  }
  .ls .news-card:hover, .ls-w .news-card:hover {
    border-color: rgba(39,98,255,0.25);
    box-shadow: 0 8px 32px rgba(39,98,255,0.1);
    transform: translateY(-3px);
  }
  .ls .news-card h3, .ls-w .news-card h3 { color: #0b1a3d; }
  .ls .news-card p,  .ls-w .news-card p  { color: #566280; }
  .ls .news-date,    .ls-w .news-date    { color: var(--teal-dim); }

  /* testimonial on light */
  .ls .testimonial-card, .ls-w .testimonial-card {
    background: linear-gradient(135deg, rgba(176,28,46,0.05), rgba(0,201,167,0.03));
    border-color: rgba(176,28,46,0.15);
    box-shadow: 0 4px 32px rgba(176,28,46,0.07);
  }
  .ls .testimonial-quote, .ls-w .testimonial-quote { color: #1e2d50; }
  .ls .author-name, .ls-w .author-name { color: #0b1a3d; }
  .ls .author-role, .ls-w .author-role { color: #566280; }

  /* btn-ghost on light */
  .ls .btn-ghost, .ls-w .btn-ghost {
    color: #0b1a3d;
    border-color: rgba(13,27,62,0.2);
  }
  .ls .btn-ghost:hover, .ls-w .btn-ghost:hover {
    background: rgba(13,27,62,0.05);
  }

  /* APEX page light overrides */
  .ls .card-icon { background: rgba(39,98,255,0.1); }
  .ls .card-icon.teal { background: rgba(0,149,124,0.12); }

  /* why-beyond checklist cards on light */
  .ls-why-item {
    background: #ffffff !important;
    border-color: rgba(13,27,62,0.1) !important;
    box-shadow: 0 2px 12px rgba(13,27,62,0.05) !important;
  }
  .ls-why-item .why-title { color: #0b1a3d !important; }
  .ls-why-item .why-sub   { color: #566280 !important; }

  /* customer logo tiles on light */
  .ls-logo-tile {
    background: #ffffff !important;
    border-color: rgba(13,27,62,0.1) !important;
    box-shadow: 0 2px 12px rgba(13,27,62,0.05) !important;
  }
  .ls-logo-tile img { filter: none !important; opacity: 0.8 !important; }

  /* apex approach text on light */
  .ls-approach-text { color: #566280 !important; }
  .ls-approach-head { color: #0b1a3d !important; }


/* ── Fail-safe: only run the reveal animation when JS is active ──
   Prevents any chance of content staying invisible if a script fails. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ─── PAGE / POST / ARCHIVE TEMPLATES ───────────────────────── */
  .page-hero { position: relative; overflow: hidden; padding: 3.5rem 2rem 2.75rem; background: var(--navy); border-bottom: 1px solid var(--border); }
  .page-hero .hero-bg, .page-hero .hero-grid { position: absolute; inset: 0; }
  .page-hero-inner { position: relative; max-width: 1000px; margin: 0 auto; }
  .page-breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.7rem; }
  .page-breadcrumb a { color: var(--teal); }
  .page-breadcrumb a:hover { color: var(--blue-light); }
  .page-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); line-height: 1.15; }
  .post-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }
  .post-meta .teal { color: var(--teal); }

  .entry-wrap { max-width: 860px; margin: 0 auto; padding: 3rem 2rem 4rem; }
  .entry-content { color: var(--off-white); font-size: 1.05rem; line-height: 1.85; }
  .entry-content > *:first-child { margin-top: 0; }
  .entry-content h2 { font-family: var(--font-head); color: var(--white); font-size: 1.6rem; font-weight: 700; margin: 2.2rem 0 0.8rem; }
  .entry-content h3 { font-family: var(--font-head); color: var(--white); font-size: 1.3rem; font-weight: 700; margin: 1.8rem 0 0.6rem; }
  .entry-content h4 { font-family: var(--font-head); color: var(--white); font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 0.5rem; }
  .entry-content p { margin-bottom: 1.2rem; }
  .entry-content a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 2px; }
  .entry-content a:hover { color: var(--teal); }
  .entry-content ul, .entry-content ol { margin: 0 0 1.2rem 1.4rem; }
  .entry-content li { margin-bottom: 0.5rem; }
  .entry-content strong { color: var(--white); }
  /* ─── QUOTE / TESTIMONIAL CARD (blockquote in post & page content) ───
     One card style that adapts to a light or dark page. Written as a
     blockquote, so existing content needs no changes. */
  .entry-content blockquote {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem 2rem;
    margin: 2rem 0;
    overflow: hidden;
    color: rgba(255,255,255,0.85);
  }
  /* brand accent along the top edge, matching the product cards */
  .entry-content blockquote::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--teal));
  }
  /* oversized opening quote mark, sitting behind the text */
  .entry-content blockquote::after {
    content: '';
    position: absolute;
    top: 1.4rem; right: 1.6rem;
    width: 46px; height: 34px;
    background-color: rgba(0,201,167,0.22);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2044%2032%27%3E%3Cpath%20d%3D%27M2%2032V17.5C2%208%208.2%202.2%2018%200l1.7%204.7C13.8%206.5%2010.2%2010%2010.2%2014H19v18z%27%2F%3E%3Cpath%20d%3D%27M26%2032V17.5C26%208%2032.2%202.2%2042%200l1.7%204.7C37.8%206.5%2034.2%2010%2034.2%2014H43v18z%27%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2044%2032%27%3E%3Cpath%20d%3D%27M2%2032V17.5C2%208%208.2%202.2%2018%200l1.7%204.7C13.8%206.5%2010.2%2010%2010.2%2014H19v18z%27%2F%3E%3Cpath%20d%3D%27M26%2032V17.5C26%208%2032.2%202.2%2042%200l1.7%204.7C37.8%206.5%2034.2%2010%2034.2%2014H43v18z%27%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
    pointer-events: none;
  }
  /* Browsers without CSS masking simply get no decoration, never a solid block. */
  @supports not ((-webkit-mask-image: url('')) or (mask-image: url(''))) {
    .entry-content blockquote::after { display: none; }
  }
  .entry-content blockquote > * { position: relative; z-index: 1; }
  .entry-content blockquote p { font-style: italic; line-height: 1.85; }
  /* keep the opening line clear of the decorative quote mark */
  .entry-content blockquote > p:first-of-type { padding-right: 3.5rem; }
  .entry-content blockquote p:last-of-type { margin-bottom: 0; }
  /* attribution */
  .entry-content blockquote cite,
  .entry-content blockquote footer {
    display: block;
    margin-top: 1.25rem;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--teal);
  }
  /* a client logo dropped in under the quote */
  .entry-content blockquote img {
    display: block;
    /* content-box so the white plate's padding sits OUTSIDE the height cap
       instead of squashing the logo inside it */
    box-sizing: content-box;
    max-height: 48px;
    max-width: 100%;
    /* !important because the editor often writes width/height attributes or an
       inline style on the image, which would otherwise force a distorted shape */
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 1.35rem 0 0;
    /* client logos are usually dark artwork on transparent, so give them a
       white plate on dark backgrounds; removed again on light pages below. */
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
  }
  @media (max-width: 768px) {
    .entry-content blockquote { padding: 1.75rem 1.5rem 1.5rem; }
    .entry-content blockquote::after { width: 34px; height: 25px; top: 1.1rem; right: 1rem; }
    .entry-content blockquote > p:first-of-type { padding-right: 2.25rem; }
  }
  .entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
  .entry-content code { background: var(--card-bg); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
  .entry-content pre { background: var(--navy-2); padding: 1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--border); margin-bottom: 1.2rem; }
  .entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
  .entry-content th, .entry-content td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
  .entry-content th { background: var(--card-bg); color: var(--white); }
  .entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

  /* Archive / blog listing reuses the news-card look */
  .archive-list { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  @media (max-width: 1024px) { .archive-list { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 768px)  { .archive-list { grid-template-columns: 1fr; } }
  .archive-pagination { max-width: 1200px; margin: 0 auto 4rem; padding: 0 2rem; text-align: center; }
  .archive-pagination .page-numbers { display: inline-block; padding: 0.45rem 0.85rem; margin: 0 0.15rem; border: 1px solid var(--border); border-radius: 8px; color: var(--off-white); font-size: 0.85rem; }
  .archive-pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
  .archive-pagination a.page-numbers:hover { border-color: var(--teal); color: var(--teal); }

  /* ═══ NAV FIXES (sticky + reachable dropdowns) ═══════════════════ */
  /* 'hidden' made <body> a scroll container and broke position:sticky.
     'clip' prevents horizontal scroll WITHOUT breaking sticky. */
  html, body { overflow-x: clip; }
  nav#navbar { position: -webkit-sticky; position: sticky; top: 0; z-index: 200; }
  /* sit below the WordPress admin bar when logged in */
  .admin-bar nav#navbar { top: 32px; }
  @media screen and (max-width: 782px) { .admin-bar nav#navbar { top: 46px; } }
  /* Remove the hover-killing gap; add an invisible bridge so the pointer
     can travel from the item into the dropdown without it closing. */
  .nav-links > li > .dropdown { top: 100%; }
  .nav-links > li > .dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
  .nav-links > li:hover > .dropdown,
  .nav-links > li:focus-within > .dropdown { display: block; }

  /* ─── FOOTER ACCREDITATIONS ─────────────────────────────────── */
  .footer-accreditations { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.75rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
  .footer-accreditations .accred-label { width: 100%; font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.25rem; }
  .footer-accreditations .accred { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 0.5rem 0.85rem; height: 58px; transition: transform 0.2s; }
  .footer-accreditations a.accred:hover { transform: translateY(-2px); }
  .footer-accreditations .accred img { max-height: 42px; width: auto; display: block; }

  /* ─── HOMEPAGE SLIDER (under the menu) ──────────────────────── */
  .bs-slider { position: relative; overflow: hidden; background: var(--navy-2); min-height: 460px; }
  .bs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; background-size: cover; background-position: center; display: flex; align-items: center; }
  .bs-slide.active { opacity: 1; }
  .bs-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,49,64,0.88) 0%, rgba(20,49,64,0.45) 55%, rgba(20,49,64,0.2) 100%); }
  .bs-slide-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding: 4rem 2rem; }
  .bs-slide-inner h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 0.75rem; max-width: 640px; }
  .bs-slide-inner p { color: var(--off-white); font-size: 1.05rem; line-height: 1.7; max-width: 520px; margin-bottom: 1.6rem; }
  .bs-slider-dots { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 3; }
  .bs-slider-dots button { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s; }
  .bs-slider-dots button.active { background: var(--teal); }
  .bs-slider-shortcode { position: relative; }
  @media (max-width: 768px) { .bs-slider { min-height: 360px; } }

  /* Mobile menu list tidy-up (WP menu output) */
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu .sub-menu { padding-left: 1rem; border-left: 1px solid var(--border); margin: 0.35rem 0; }
  .mobile-menu .sub-menu a { font-size: 0.9rem; color: var(--muted); }

  /* ─── FEATURE SECTION (optional, page-driven) ───────────────── */
  .feature-section { position: relative; overflow: hidden; background: var(--navy-2); padding: 5rem 2rem; }
  .feature-section.has-bg { background-size: cover; background-position: center; }
  .feature-section.has-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,49,64,0.92) 0%, rgba(20,49,64,0.6) 60%, rgba(20,49,64,0.35) 100%); }
  .feature-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
  .feature-title { font-family: var(--font-head); font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1rem; max-width: 720px; }
  .feature-text { color: var(--off-white); font-size: 1.05rem; line-height: 1.8; max-width: 720px; margin-bottom: 1.6rem; }
  .testimonial-plugin { margin-top: 1rem; }

  /* News cards that are whole-card links */
  a.news-card { display: block; color: inherit; text-decoration: none; }

  /* ─── CUSTOM LOGO SIZING (Site Identity) ────────────────────── */
  .nav-inner .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
  .nav-inner .custom-logo,
  .nav-inner .logo img { height: var(--logo-h, 52px); width: auto; max-width: 320px; display: block; }
  footer .footer-brand .custom-logo-link { display: inline-block; line-height: 0; }
  footer .footer-brand .custom-logo,
  footer .footer-brand .logo img { height: calc(var(--logo-h, 52px) - 6px); width: auto; max-width: 300px; display: block; }
  @media (max-width: 768px) { .nav-inner .custom-logo, .nav-inner .logo img { max-width: 190px; } }

  /* ─── LIGHT PAGES / POSTS / ARCHIVES ────────────────────────── */
  body.bs-articles-light { background: #eef2f9; }
  .bs-articles-light .entry-content { color: #2b3a5c; }
  .bs-articles-light .entry-content h2,
  .bs-articles-light .entry-content h3,
  .bs-articles-light .entry-content h4 { color: #0b1a3d; }
  .bs-articles-light .entry-content a { color: var(--blue); }
  .bs-articles-light .entry-content a:hover { color: var(--teal-dim); }
  .bs-articles-light .entry-content strong { color: #0b1a3d; }
  .bs-articles-light .entry-content blockquote {
    background: #ffffff;
    color: #2b3a5c;
    border-color: rgba(13,27,62,0.09);
    box-shadow: 0 2px 20px rgba(13,27,62,0.06);
  }
  .bs-articles-light .entry-content blockquote::after { background-color: rgba(0,149,124,0.20); }
  .bs-articles-light .entry-content blockquote cite,
  .bs-articles-light .entry-content blockquote footer { color: var(--teal-dim); }
  .bs-articles-light .entry-content blockquote img { background: transparent; padding: 0; }
  .bs-articles-light .entry-content code { background: #e3e9f5; color: #0b1a3d; }
  .bs-articles-light .entry-content th { background: #e3e9f5; color: #0b1a3d; }
  .bs-articles-light .entry-content th,
  .bs-articles-light .entry-content td { border-color: rgba(13,27,62,0.12); }
  .bs-articles-light .entry-content hr { border-color: rgba(13,27,62,0.12); }
  .bs-articles-light .post-navigation a { color: var(--blue); }
  /* archive/blog cards on light */
  .bs-articles-light .news-card { background: #fff; border-color: rgba(13,27,62,0.1); box-shadow: 0 2px 16px rgba(13,27,62,0.05); }
  .bs-articles-light .news-card h3 { color: #0b1a3d; }
  .bs-articles-light .news-card p { color: #566280; }
  .bs-articles-light .news-date { color: var(--teal-dim); }
  .bs-articles-light .news-card:hover { border-color: rgba(39,98,255,0.25); box-shadow: 0 8px 32px rgba(39,98,255,0.1); }
  .bs-articles-light .archive-pagination .page-numbers { color: #0b1a3d; border-color: rgba(13,27,62,0.15); }
  .bs-articles-light .archive-pagination .page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }

  /* ─── LAYOUT: content + sidebar ─────────────────────────────── */
  .bs-layout { display: flex; gap: 2.5rem; margin: 0 auto; padding: 3rem 2rem 4rem; align-items: flex-start; }
  .bs-layout .bs-main { flex: 1; min-width: 0; }
  .bs-layout .bs-main .entry-content { max-width: none; }
  .bs-layout .archive-list { max-width: none; margin: 0; padding: 0; }
  .bs-layout .archive-pagination { max-width: none; margin: 0; padding: 1.5rem 0 0; text-align: left; }
  .bs-sidebar { width: var(--sidebar-w, 320px); flex-shrink: 0; }
  .bs-sidebar-left { flex-direction: row-reverse; }
  @media (max-width: 900px) { .bs-layout { flex-direction: column; } .bs-sidebar { width: 100%; } }
  /* sidebar widgets */
  .bs-sidebar .widget { margin-bottom: 1.75rem; }
  .bs-sidebar .widget-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--white); }
  .bs-sidebar ul { list-style: none; margin: 0; padding: 0; }
  .bs-sidebar li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
  .bs-articles-light .bs-sidebar .widget-title { color: #0b1a3d; }
  .bs-articles-light .bs-sidebar, .bs-articles-light .bs-sidebar p { color: #566280; }
  .bs-articles-light .bs-sidebar a { color: var(--blue); }
  .bs-articles-light .bs-sidebar a:hover { color: var(--teal-dim); }
  .bs-articles-light .bs-sidebar li { border-bottom-color: rgba(13,27,62,0.1); }

  /* ─── POSTS LAYOUT COLUMNS ──────────────────────────────────── */
  .archive-list.bs-cols-1 { grid-template-columns: 1fr; }
  .archive-list.bs-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .archive-list.bs-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .archive-list.bs-cols-1 .news-card { display: grid; grid-template-columns: 260px 1fr; }
  .archive-list.bs-cols-1 .news-card .news-img { height: 100%; min-height: 180px; }
  @media (max-width: 1024px) { .archive-list.bs-cols-2, .archive-list.bs-cols-3 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 768px) { .archive-list { grid-template-columns: 1fr !important; } .archive-list.bs-cols-1 .news-card { grid-template-columns: 1fr; } }

  /* ─── LANDING PAGE TEMPLATE ─────────────────────────────────── */
  .bs-landing { max-width: var(--site-w, 1200px); margin: 0 auto; padding: 3rem 2rem 4rem; }
  .bs-landing .entry-content { max-width: none; }

  /* ─── WHITE PAGE BACKGROUND (Pages, and the white/landing templates) ─ */
  body.bs-page-white { background: #ffffff; }
  body.bs-page-white .entry-wrap,
  body.bs-page-white .bs-landing,
  body.bs-page-white .bs-layout { background: #ffffff; }
  body.bs-page-white .entry-content blockquote { background: #f7f9fd; border-color: rgba(13,27,62,0.10); }
  body.bs-page-white .entry-content code { background: #eef2f9; }
  body.bs-page-white .entry-content th { background: #eef2f9; }
  /* ─── LANDING PAGE SECTIONS TEMPLATE ────────────────────────
     The wrapper is edge-to-edge so [bs_section] bands can span the full
     viewport. Loose blocks (paragraphs, headings, images typed straight into
     the editor) are pulled back into the normal site-width column. */
  .bs-landing-sections { width: 100%; }
  .bs-landing-sections > .entry-content { max-width: none; padding: 0; }
  .bs-landing-sections > .entry-content > *:not(.bs-band):not(.cta-section):not(.bs-fullbleed):not(.alignfull) {
    max-width: var(--site-w, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .bs-landing-sections > .entry-content > *:first-child:not(.bs-band):not(.cta-section):not(.bs-fullbleed) { margin-top: 3rem; }
  .bs-landing-sections > .entry-content > *:last-child:not(.bs-band):not(.cta-section):not(.bs-fullbleed) { margin-bottom: 3rem; }

  /* The band itself. Padding lives on .bs-band-inner, so cancel the theme's
     base `section { padding: 5rem 2rem }` here or every band is double-padded. */
  section.bs-band, .bs-band { position: relative; width: 100%; padding: 0; }
  .bs-band-inner { max-width: var(--site-w, 1200px); margin: 0 auto; padding: 4.5rem 2rem; }
  .bs-band--pad-none   > .bs-band-inner { padding-top: 0;      padding-bottom: 0; }
  .bs-band--pad-small  > .bs-band-inner { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .bs-band--pad-large  > .bs-band-inner { padding-top: 7rem;    padding-bottom: 7rem; }
  .bs-band--narrow > .bs-band-inner { max-width: 820px; }
  .bs-band--wide   > .bs-band-inner { max-width: 1440px; }
  .bs-band--full   > .bs-band-inner { max-width: none; }
  .bs-band--center { text-align: center; }
  .bs-band--center .section-sub,
  .bs-band--center .bs-head--center .section-sub { margin-left: auto; margin-right: auto; }
  .bs-band--center .bs-btn-row,
  .bs-band--center .bs-stats { justify-content: center; }
  .bs-head--center { text-align: center; }
  .bs-head--center .section-sub { margin-left: auto; margin-right: auto; }
  .bs-band > .bs-band-inner > *:first-child { margin-top: 0; }
  .bs-band > .bs-band-inner > *:last-child { margin-bottom: 0; }
  /* .entry-content gives headings a big top margin; section heads set their own rhythm. */
  .bs-band .section-head > *:first-child { margin-top: 0; }
  .bs-band .section-head .section-title { margin-top: 0; }
  .bs-band .section-head + * { margin-top: 0; }
  .bs-band .product-card h3, .bs-band .product-card p { margin-top: 0; }
  .bs-band + .bs-band { margin-top: 0; }
  .bs-band--image { background-repeat: no-repeat; }

  /* Dark bands: white copy, brand link colours, translucent cards (as per the homepage) */
  .bs-band--dark { color: rgba(255,255,255,0.85); }
  .bs-band--dark .section-title,
  .bs-band--dark h1, .bs-band--dark h2, .bs-band--dark h3,
  .bs-band--dark h4, .bs-band--dark h5, .bs-band--dark h6,
  .bs-band--dark strong { color: #ffffff !important; }
  .bs-band--dark p, .bs-band--dark li { color: rgba(255,255,255,0.85) !important; }
  .bs-band--dark .section-label { color: var(--teal) !important; }
  .bs-band--dark .section-sub { color: var(--muted) !important; }
  .bs-band--dark a:not(.btn-primary):not(.btn-ghost):not(.card-link) { color: var(--teal); text-decoration: underline; }
  .bs-band--dark a:not(.btn-primary):not(.btn-ghost):not(.card-link):hover { color: var(--blue-light); }
  .bs-band--dark li::marker { color: var(--teal); }
  .bs-band--dark .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,0.25); }
  .bs-band--dark .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
  .bs-band--dark blockquote { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); color: rgba(255,255,255,0.85); box-shadow: none; }

  /* Light/white bands inherit the theme's .ls / .ls-w card + heading styling. */
  .bs-band.ls, .bs-band.ls-w { color: #2b3a5c; }
  .bs-band.ls p, .bs-band.ls li, .bs-band.ls-w p, .bs-band.ls-w li { color: #566280 !important; }
  .bs-band.ls .section-title, .bs-band.ls-w .section-title,
  .bs-band.ls h1, .bs-band.ls h2, .bs-band.ls h3, .bs-band.ls h4, .bs-band.ls h5, .bs-band.ls h6,
  .bs-band.ls-w h1, .bs-band.ls-w h2, .bs-band.ls-w h3, .bs-band.ls-w h4, .bs-band.ls-w h5, .bs-band.ls-w h6,
  .bs-band.ls strong, .bs-band.ls-w strong { color: #0b1a3d !important; }
  .bs-band.ls .section-sub, .bs-band.ls-w .section-sub { color: #566280 !important; }
  .bs-band.ls .section-label, .bs-band.ls-w .section-label { color: var(--teal-dim) !important; }
  .bs-band.ls a:not(.btn-primary):not(.btn-ghost):not(.card-link),
  .bs-band.ls-w a:not(.btn-primary):not(.btn-ghost):not(.card-link) { color: var(--blue); text-decoration: underline; }
  .bs-band.ls li::marker, .bs-band.ls-w li::marker { color: var(--teal-dim); }

  /* Grids used by the section shortcodes */
  .bs-grid-1 { grid-template-columns: 1fr; }
  .bs-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .bs-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .bs-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .bs-cols { display: grid; gap: 2.5rem; align-items: start; }
  /* Safety net: anything the editor leaves between cards must not take a grid
     cell, or the whole row shifts along. display:contents removes the stray
     wrapper from the layout while keeping any real cards inside it. */
  .products-grid > *:not(.product-card),
  .bs-cols > *:not(.bs-col) { display: contents; }
  .products-grid > br,
  .bs-cols > br { display: none; }
  .bs-cols > .bs-col > *:first-child { margin-top: 0; }
  .bs-btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
  .bs-stats { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 2.5rem; }
  .bs-band.ls .stat-label, .bs-band.ls-w .stat-label { color: #566280; }
  .bs-band.ls .stat-num, .bs-band.ls-w .stat-num { color: #0b1a3d; }
  /* A CTA given an explicit colour: kill the red glow and give the primary
     button a white pill so it stays visible on any background. */
  .bs-band--cta-solid::before { display: none !important; }
  .bs-band.bs-band--cta-solid .btn-primary { background: #ffffff !important; color: #0b1a3d !important; }
  .bs-band.bs-band--cta-solid .btn-primary:hover { background: rgba(255,255,255,0.88) !important; }
  .bs-band--cta-solid.bs-band--dark .btn-ghost { color: #ffffff !important; border-color: rgba(255,255,255,0.45) !important; }
  .bs-band--cta.bs-band--dark .cta-text h2 { color: #ffffff !important; }
  .bs-band--cta.bs-band--dark .cta-text p { color: rgba(255,255,255,0.88) !important; }
  .bs-band--cta.ls .cta-text h2, .bs-band--cta.ls-w .cta-text h2 { color: #0b1a3d !important; }
  .bs-band--cta.ls .cta-text p, .bs-band--cta.ls-w .cta-text p { color: #566280 !important; }

  /* A button keeps its own label colour, not the body-copy link colour. Solid
     buttons are white-on-red everywhere; the solid-CTA band below overrides that
     deliberately and still wins on specificity. Ghost buttons follow the page
     they sit on, exactly as the band rules do — and are matched only when they
     sit directly in page content, so buttons inside a band are left to the band
     rules that follow. */
  .btn-primary { color: #ffffff !important; }
  .entry-content > .btn-ghost,
  .entry-content > p > .btn-ghost,
  .entry-content > .bs-btn-row > .btn-ghost {
    color: var(--red) !important; border-color: rgba(176,28,46,0.35) !important;
  }
  body.bs-fw-dark-page .entry-content > .btn-ghost,
  body.bs-fw-dark-page .entry-content > p > .btn-ghost,
  body.bs-fw-dark-page .entry-content > .bs-btn-row > .btn-ghost {
    color: #ffffff !important; border-color: rgba(255,255,255,0.25) !important;
  }

  /* ─── PERSON PROFILES — [bs_people] / [bs_person] ──────────────────
     Photo, name, role, biography and social links. The photo alternates side
     down the page. Colours follow the background it is placed on. */
  .bs-people { display: flex; flex-direction: column; gap: 3.25rem; margin: 2rem 0; }
  .bs-person {
    --bs-person-photo: 180px;
    display: grid;
    grid-template-columns: var(--bs-person-photo) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .bs-person + .bs-person { margin-top: 3.25rem; }
  .bs-people .bs-person + .bs-person { margin-top: 0; }
  .bs-person--right { grid-template-columns: minmax(0, 1fr) var(--bs-person-photo); }
  .bs-person--right .bs-person-photo { order: 2; }
  /* No photo supplied — the biography simply uses the full width. */
  .bs-person--nophoto, .bs-person--nophoto.bs-person--right { grid-template-columns: minmax(0, 1fr); }

  .bs-person-photo { margin: 0; }
  .bs-person-photo .bs-person-img {
    display: block;
    width: 100%; height: auto;
    border-radius: var(--radius);
    border: 1px solid rgba(13,27,62,0.10);
  }

  .bs-person-name {
    font-family: var(--font-head);
    font-size: 1.2rem; font-weight: 700; line-height: 1.25;
    color: #0b1a3d;
    margin: 0 0 0.3rem;
  }
  /* These beat `.entry-content a { color: var(--blue) }`, which is meant for
     links in body copy and would otherwise turn the name and the icons blue. */
  .bs-person-name a { color: inherit !important; text-decoration: none !important; }
  .bs-person-name a:hover { color: var(--red) !important; }
  .bs-person-role {
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--teal-dim);
    margin: 0 0 1rem;
  }
  .bs-person-bio { margin: 0; }
  .bs-person-bio p {
    font-size: 0.95rem; line-height: 1.75; color: #566280;
    margin: 0 0 0.9rem;
  }
  .bs-person-bio p:last-child { margin-bottom: 0; }

  .bs-person-social { display: flex; gap: 0.55rem; margin-top: 1.1rem; flex-wrap: wrap; }
  .bs-person-social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(13,27,62,0.12);
    color: #566280 !important;
    text-decoration: none !important;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .bs-person-social-link svg { width: 15px; height: 15px; fill: currentColor; display: block; }
  .bs-person-social-link:hover {
    color: var(--red) !important; border-color: rgba(176,28,46,0.35); background: rgba(176,28,46,0.05);
  }

  /* On brand navy — the dark page template or a dark [bs_section] band */
  .bs-band--dark .bs-person-name,
  body.bs-fw-dark-page .bs-person-name { color: #ffffff; }
  .bs-band--dark .bs-person-role,
  body.bs-fw-dark-page .bs-person-role { color: var(--teal); }
  .bs-band--dark .bs-person-bio p,
  body.bs-fw-dark-page .bs-person-bio p { color: rgba(255,255,255,0.82); }
  .bs-band--dark .bs-person-photo .bs-person-img,
  body.bs-fw-dark-page .bs-person-photo .bs-person-img { border-color: rgba(255,255,255,0.14); }
  .bs-band--dark .bs-person-social-link,
  body.bs-fw-dark-page .bs-person-social-link { color: var(--muted) !important; border-color: rgba(255,255,255,0.18); }
  .bs-band--dark .bs-person-social-link:hover,
  body.bs-fw-dark-page .bs-person-social-link:hover {
    color: #ffffff !important; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08);
  }

  @media (max-width: 720px) {
    .bs-person, .bs-person--right { grid-template-columns: 1fr; gap: 1.25rem; }
    .bs-person--right .bs-person-photo { order: 0; }
    .bs-person-photo { max-width: var(--bs-person-photo); }
    .bs-people { gap: 2.5rem; }
    .bs-person + .bs-person { margin-top: 2.5rem; }
  }

  /* Button sizes — [bs_button size="small"] / size="large". A custom length such
     as size="13px" is applied inline instead, with padding in em so it keeps the
     button's proportions at any size. Default size is untouched. */
  .btn-primary.bs-btn--small, .btn-ghost.bs-btn--small { font-size: 0.8rem;  padding: 0.6rem 1.3rem; }
  .btn-primary.bs-btn--large, .btn-ghost.bs-btn--large { font-size: 1.05rem; padding: 1rem 2.2rem; }

  /* A button with nowhere to go is a label, not a link. It keeps the button
     look, but loses the hand cursor and the hover response so it does not
     invite a click. [bs_button] and [bs_cta] render these as a <span> carrying
     .bs-btn-static; the [href] selectors are a safety net for buttons written
     straight into a page as HTML with a placeholder link. */
  .bs-btn-static,
  a.btn-primary[href="#"], a.btn-ghost[href="#"],
  a.btn-primary[href=""],  a.btn-ghost[href=""],
  a.btn-primary:not([href]), a.btn-ghost:not([href]) {
    cursor: default !important;
    pointer-events: none;   /* no hover, no colour shift, no lift, no click */
  }

  /* Buttons and card links inside a band must not inherit body-copy link styling */
  .bs-band .btn-primary,
  .bs-band .btn-ghost,
  .bs-band .card-link { text-decoration: none !important; }
  .bs-band .btn-primary { color: #ffffff !important; }
  .bs-band--dark .btn-ghost { color: #ffffff !important; border-color: rgba(255,255,255,0.25) !important; }
  .bs-band--dark .card-link { color: var(--teal) !important; }
  .bs-band.ls .btn-ghost, .bs-band.ls-w .btn-ghost { color: var(--red) !important; border-color: rgba(176,28,46,0.35) !important; }
  .bs-band.ls .card-link, .bs-band.ls-w .card-link { color: var(--blue) !important; }

  /* A button is a button wherever it is used. The rule above only covers buttons
     inside a band; a [bs_button] dropped straight onto a page sits in plain
     .entry-content, where `.entry-content a { text-decoration: underline }` —
     which is right for links in body copy — was underlining the button label.
     Opt every button out of that, in every context. Colours are untouched. */
  a.btn-primary, a.btn-ghost, a.card-link,
  .btn-primary, .btn-ghost, .card-link,
  .bs-btn-row > a,
  .entry-content a.button,
  .entry-content .wp-block-button__link,
  .bs-landing .wp-block-button__link { text-decoration: none !important; }
  .bs-band.ls .card-link:hover, .bs-band.ls-w .card-link:hover { color: var(--teal-dim) !important; }
  .bs-band .product-card h3 { margin-top: 0; }

  @media (max-width: 1024px) {
    .bs-grid-3, .bs-grid-4 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    .bs-band-inner { padding: 3rem 1.25rem; }
    .bs-band--pad-large > .bs-band-inner { padding-top: 4rem; padding-bottom: 4rem; }
    .bs-grid-2, .bs-grid-3, .bs-grid-4 { grid-template-columns: 1fr; }
    .bs-cols { gap: 2rem; }
    .bs-landing-sections > .entry-content > *:not(.bs-band):not(.cta-section):not(.bs-fullbleed):not(.alignfull) { padding-left: 1.25rem; padding-right: 1.25rem; }
  }

  /* [bs_home_section] wrapper — lets a homepage band run the full browser width
     on any template. Excluded inside a sidebar column, where full-bleed makes
     no sense. */
  .bs-fullbleed { width: 100%; }
  .bs-fullbleed > section,
  .bs-fullbleed > div { margin-left: 0; margin-right: 0; }
  .entry-wrap .bs-fullbleed,
  .bs-landing .bs-fullbleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
  }
  .bs-main .bs-fullbleed { margin-left: 0; margin-right: 0; width: 100%; max-width: 100%; }
  /* No white strip above/below when the band is the first or last thing on the page. */
  .entry-wrap > .entry-content > .bs-fullbleed:first-child { margin-top: -3rem; }
  .entry-wrap > .entry-content > .bs-fullbleed:last-child { margin-bottom: -4rem; }
  /* Inside a dropped-in homepage band, the theme's own section styling must win
     over the page-content link colour/underline, so the band looks identical to
     the way it looks on the homepage. */
  .bs-fullbleed a { text-decoration: none !important; }
  .bs-fullbleed .ls .btn-ghost,
  .bs-fullbleed .ls-w .btn-ghost { color: #0b1a3d !important; border-color: rgba(13,27,62,0.2) !important; }
  .bs-fullbleed .btn-primary { color: #ffffff !important; }
  .bs-fullbleed .ls .card-link,
  .bs-fullbleed .ls-w .card-link { color: var(--blue) !important; }
  .bs-fullbleed .products-section .btn-ghost,
  .bs-fullbleed .services-section .btn-ghost,
  .bs-fullbleed .team-section .btn-ghost,
  .bs-fullbleed .cta-section .btn-ghost { color: #ffffff !important; border-color: rgba(255,255,255,0.15) !important; }
  .bs-fullbleed .cta-section .cta-text h2 { color: #ffffff !important; }
  .bs-fullbleed .cta-section .cta-text p { color: var(--muted) !important; }

  /* Group blocks given the class "bs-band" behave the same way */
  .bs-band > .wp-block-group__inner-container { max-width: var(--site-w, 1200px); margin: 0 auto; padding: 4.5rem 2rem; }

  /* ─── FULL WIDTH — DARK BRAND BACKGROUND TEMPLATE ───────────── */
  body.bs-fw-dark-page { background: var(--navy); color: var(--off-white); }
  .bs-fw-dark { background: var(--navy); }
  .bs-fw-dark .entry-content { color: rgba(255,255,255,0.85); }
  .bs-fw-dark .entry-content h1,
  .bs-fw-dark .entry-content h2,
  .bs-fw-dark .entry-content h3,
  .bs-fw-dark .entry-content h4,
  .bs-fw-dark .entry-content h5,
  .bs-fw-dark .entry-content h6,
  .bs-fw-dark .entry-content strong { color: #ffffff; }
  .bs-fw-dark .entry-content a { color: var(--teal); }
  .bs-fw-dark .entry-content a:hover { color: var(--blue-light); }
  .bs-fw-dark .entry-content blockquote {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    box-shadow: none;
  }
  .bs-fw-dark .entry-content blockquote::after { background-color: rgba(0,201,167,0.24); }
  .bs-fw-dark .entry-content blockquote cite,
  .bs-fw-dark .entry-content blockquote footer { color: var(--teal); }
  .bs-fw-dark .entry-content code { background: rgba(255,255,255,0.08); color: #ffffff; }
  .bs-fw-dark .entry-content hr { border-color: var(--border); }
  .bs-fw-dark .entry-content th { background: rgba(255,255,255,0.06); color: #ffffff; }
  .bs-fw-dark .entry-content th,
  .bs-fw-dark .entry-content td { border-color: var(--border); }
  .bs-fw-dark .entry-content ul li::marker,
  .bs-fw-dark .entry-content ol li::marker { color: var(--teal); }
  /* Gutenberg blocks placed on the dark band. */
  .bs-fw-dark .wp-block-group,
  .bs-fw-dark .wp-block-columns { color: inherit; }
  .bs-fw-dark .wp-block-separator { border-color: var(--border); }

  /* ─── HEADER CONSISTENCY (opaque on every page) ─────────────── */
  .topbar { background: #0f2a38; }
  nav#navbar { background: #143140; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar .tb-ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 0.35rem; }

  /* ─── TOP BAR RIGHT MENU ────────────────────────────────────── */
  .topbar-right .topbar-menu { display: flex; gap: 1rem; align-items: center; list-style: none; margin: 0; padding: 0; }
  .topbar-right .topbar-menu li { margin: 0; }

  /* ─── CONTENT BUTTONS (pages/posts/landing) adopt the brand button ─ */
  .entry-content .wp-block-button__link,
  .bs-landing .wp-block-button__link,
  .entry-content a.button,
  .entry-content button:not(.tab-btn):not(.tc-arrow),
  .entry-content input[type="submit"],
  .bs-landing input[type="submit"] {
    display: inline-block; background: var(--red); color: #fff !important;
    padding: 0.85rem 1.8rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
    border: none; text-decoration: none; line-height: 1.2; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }
  .entry-content .wp-block-button__link:hover,
  .bs-landing .wp-block-button__link:hover,
  .entry-content a.button:hover,
  .entry-content button:not(.tab-btn):not(.tc-arrow):hover,
  .entry-content input[type="submit"]:hover,
  .bs-landing input[type="submit"]:hover {
    background: var(--red-light); color: #fff !important; transform: translateY(-1px);
  }
  /* Outline button block -> ghost (red) variant */
  .entry-content .wp-block-button.is-style-outline .wp-block-button__link,
  .bs-landing .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent; color: var(--red) !important; border: 1px solid var(--red);
  }
  .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
  .bs-landing .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(176,28,46,0.08); color: var(--red) !important;
  }

  /* Topbar badge logo (optional) */
  .topbar-left .topbar-logo { height: var(--badge-h, 26px); width: auto; display: block; }

  /* Full-width (no sidebar) content spans the site width */
  .entry-wrap--full { max-width: var(--site-w, 1200px); }
  .entry-wrap--full .entry-content { max-width: none; }

  /* ─── PAGINATION (fix list markup -> horizontal row) ────────── */
  .archive-pagination ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; margin: 0; padding: 0; border: none; }
  .archive-pagination ul.page-numbers li { list-style: none; margin: 0; padding: 0; }
  .archive-pagination ul.page-numbers li::marker { content: ""; }
  .archive-pagination a.page-numbers,
  .archive-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 0.45rem 0.85rem; margin: 0; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; }

  /* ─── TESTIMONIALS CAROUSEL (3 across) ──────────────────────── */
  .testimonial-carousel { position: relative; overflow: hidden; }
  .tc-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0.25rem; margin: -0.25rem; -ms-overflow-style: none; scrollbar-width: none; }
  .tc-track::-webkit-scrollbar { display: none; }
  .tc-card { flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; background: #ffffff; border: 1px solid rgba(13,27,62,0.1); border-radius: var(--radius-lg); box-shadow: 0 2px 16px rgba(13,27,62,0.05); padding: 1.75rem; box-sizing: border-box; }
  .tc-quote { font-size: 0.92rem; font-style: italic; line-height: 1.7; color: #1e2d50; margin-bottom: 1.25rem; }
  .tc-author { display: flex; align-items: center; gap: 0.75rem; }
  .tc-avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #003d7a, #0057b7); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
  .tc-name { font-family: var(--font-head); font-weight: 700; color: #0b1a3d; font-size: 0.9rem; }
  .tc-role { font-size: 0.78rem; color: #566280; }
  @media (max-width: 1024px) { .tc-card { flex-basis: calc((100% - 1.25rem) / 2); } }
  @media (max-width: 768px) { .tc-card { flex-basis: 100%; } }

  /* Manual prev/next arrows (work alongside the timed autoplay) */
  .testimonial-carousel.tc-has-arrows { padding: 0 3.5rem; }
  .tc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff; color: var(--navy);
    border: 1px solid rgba(13,27,62,0.12);
    box-shadow: 0 4px 18px rgba(13,27,62,0.14);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    padding: 0;
  }
  .tc-arrow svg { width: 20px; height: 20px; display: block; }
  .tc-arrow:hover { background: var(--red); color: #ffffff; border-color: var(--red); box-shadow: 0 6px 22px rgba(176,28,46,0.3); }
  .tc-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .tc-arrow:active { transform: translateY(-50%) scale(0.94); }
  .tc-arrow[hidden] { display: none; }
  .tc-prev { left: 4px; }
  .tc-next { right: 4px; }
  .tc-track:focus { outline: none; }
  .tc-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
  @media (max-width: 768px) {
    .testimonial-carousel.tc-has-arrows { padding: 0 2.6rem; }
    .tc-arrow { width: 36px; height: 36px; }
    .tc-arrow svg { width: 17px; height: 17px; }
    .tc-prev { left: 0; }
    .tc-next { right: 0; }
  }

  /* Testimonial logo (replaces the initials avatar) */
  .tc-avatar--logo { background: #fff; border: 1px solid rgba(13,27,62,0.1); width: auto; min-width: 40px; max-width: 120px; height: 40px; padding: 4px 6px; }
  .tc-avatar--logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }


/* ==========================================================================
   CONTACT FORM 7 — Beyond Systems form styling                     (v3.7.9)
   Applies only to a Contact Form 7 form whose template is wrapped in
   <div class="bs-form">. Every other form on the site is left alone.
   The form template to paste into Contact Form 7 is in
   contact-form-7-template.txt in this theme folder.
   ========================================================================== */

.bs-form{
  --bsf-ink:#0b1a3d;
  --bsf-label:#0b1a3d;
  --bsf-body:#566280;
  --bsf-hint:#8a94ad;
  --bsf-field:#ffffff;
  --bsf-border:rgba(13,27,62,0.16);
  --bsf-border-hover:rgba(13,27,62,0.30);
  --bsf-chip:#ffffff;
  --bsf-chip-border:rgba(13,27,62,0.14);
  --bsf-red:var(--red,#b01c2e);
  --bsf-red-hi:var(--red-light,#d42033);
  --bsf-blue:var(--blue,#2762ff);
  --bsf-teal:var(--teal-dim,#00957c);
  --bsf-radius:var(--radius,12px);
  max-width:720px;
}

/* ── layout ─────────────────────────────────────────────────────────────── */
.bs-form .bs-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.bs-form .bs-field{margin:0 0 20px;padding:0;border:0;min-width:0;}
.bs-form .bs-grid .bs-field{margin-bottom:0;}
.bs-form .bs-grid + .bs-field{margin-top:20px;}
.bs-form p{margin:0;}

/* ── labels ─────────────────────────────────────────────────────────────── */
.bs-form label,
.bs-form legend,
.bs-form .bs-legend{
  display:block;
  font-family:var(--font-body,'Figtree',sans-serif);
  font-size:0.82rem;
  font-weight:600;
  letter-spacing:0.02em;
  color:var(--bsf-label);
  margin-bottom:8px;
  padding:0;
}
.bs-form abbr[title]{
  color:var(--bsf-red);
  text-decoration:none;
  border:0;
  margin-left:2px;
  font-weight:700;
}

/* ── text inputs & textarea ─────────────────────────────────────────────── */
.bs-form .wpcf7-form-control-wrap{display:block;}
.bs-form input[type=text],
.bs-form input[type=email],
.bs-form input[type=tel],
.bs-form input[type=url],
.bs-form textarea,
.bs-form select{
  width:100%;
  box-sizing:border-box;
  font-family:var(--font-body,'Figtree',sans-serif);
  font-size:0.95rem;
  line-height:1.5;
  color:var(--bsf-ink);
  background:var(--bsf-field);
  border:1px solid var(--bsf-border);
  border-radius:var(--bsf-radius);
  padding:0.8rem 1rem;
  transition:border-color .18s, box-shadow .18s, background .18s;
  -webkit-appearance:none;
  appearance:none;
}
/* a consistent height whatever rows= the form tag happens to use;
   the visitor can still drag it taller */
.bs-form textarea{height:172px;min-height:120px;resize:vertical;display:block;}
.bs-form input::placeholder,
.bs-form textarea::placeholder{color:var(--bsf-hint);opacity:1;}
.bs-form input:hover,
.bs-form textarea:hover{border-color:var(--bsf-border-hover);}
.bs-form input:focus,
.bs-form textarea:focus,
.bs-form select:focus{
  outline:none;
  border-color:var(--bsf-blue);
  box-shadow:0 0 0 3px rgba(39,98,255,0.14);
}

/* ── the enquiry checkboxes, as selectable chips ────────────────────────── */
.bs-form .wpcf7-checkbox,
.bs-form .wpcf7-radio{display:flex;flex-wrap:wrap;gap:10px;}
.bs-form .wpcf7-list-item{margin:0;}
.bs-form .wpcf7-list-item label{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0;
  padding:0.6rem 1rem 0.6rem 0.75rem;
  font-size:0.9rem;
  font-weight:500;
  letter-spacing:0;
  color:var(--bsf-ink);
  background:var(--bsf-chip);
  border:1px solid var(--bsf-chip-border);
  border-radius:999px;
  cursor:pointer;
  transition:border-color .18s, background .18s, box-shadow .18s;
}
.bs-form .wpcf7-list-item label:hover{border-color:var(--bsf-border-hover);}
.bs-form .wpcf7-list-item input[type=checkbox],
.bs-form .wpcf7-list-item input[type=radio]{
  width:17px;height:17px;margin:0;flex:0 0 auto;cursor:pointer;
  accent-color:var(--bsf-red);
}
.bs-form .wpcf7-list-item-label{font-weight:500;}
/* progressive enhancement: tint the whole chip once it is ticked */
.bs-form .wpcf7-list-item label:has(input:checked){
  border-color:var(--bsf-red);
  background:rgba(176,28,46,0.05);
  box-shadow:inset 0 0 0 1px var(--bsf-red);
}
.bs-form .wpcf7-list-item label:focus-within{
  border-color:var(--bsf-blue);
  box-shadow:0 0 0 3px rgba(39,98,255,0.14);
}

/* ── actions ────────────────────────────────────────────────────────────── */
.bs-form .bs-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:6px;}
.bs-form input[type=submit],
.bs-form .wpcf7-submit{
  width:auto;
  font-family:var(--font-body,'Figtree',sans-serif);
  font-size:0.95rem;
  font-weight:600;
  color:#fff !important;
  background:var(--bsf-red) !important;
  border:0 !important;
  border-radius:var(--bsf-radius) !important;
  padding:0.85rem 1.9rem !important;
  cursor:pointer;
  box-shadow:none;
  transition:background .2s, transform .15s;
  -webkit-appearance:none;
  appearance:none;
}
.bs-form input[type=submit]:hover,
.bs-form .wpcf7-submit:hover{background:var(--bsf-red-hi) !important;transform:translateY(-1px);}
.bs-form input[type=submit]:focus-visible,
.bs-form .wpcf7-submit:focus-visible{outline:2px solid var(--bsf-blue);outline-offset:2px;}
.bs-form .wpcf7-submit:disabled{opacity:.6;cursor:default;transform:none;}
.bs-form .bs-note{font-size:0.82rem;color:var(--bsf-body);}

/* ── validation & response messages ─────────────────────────────────────── */
.bs-form .wpcf7-not-valid-tip{
  display:block;
  font-size:0.8rem;
  font-weight:500;
  color:var(--bsf-red);
  margin-top:7px;
}
.bs-form input.wpcf7-not-valid,
.bs-form textarea.wpcf7-not-valid{
  border-color:var(--bsf-red);
  box-shadow:0 0 0 3px rgba(176,28,46,0.10);
}
.bs-form .wpcf7-response-output{
  margin:22px 0 0 !important;
  padding:0.95rem 1.15rem !important;
  border:1px solid rgba(13,27,62,0.12) !important;
  border-left:3px solid var(--bsf-body) !important;
  border-radius:var(--bsf-radius) !important;
  background:rgba(13,27,62,0.03);
  font-size:0.9rem;
  line-height:1.55;
  color:var(--bsf-ink);
}
.wpcf7-form.sent:has(.bs-form) .wpcf7-response-output{
  border-left-color:var(--bsf-teal,#00957c) !important;
  background:rgba(0,201,167,0.08);
}
.wpcf7-form.invalid:has(.bs-form) .wpcf7-response-output,
.wpcf7-form.unaccepted:has(.bs-form) .wpcf7-response-output,
.wpcf7-form.failed:has(.bs-form) .wpcf7-response-output,
.wpcf7-form.aborted:has(.bs-form) .wpcf7-response-output,
.wpcf7-form.spam:has(.bs-form) .wpcf7-response-output{
  border-left-color:var(--bsf-red,#b01c2e) !important;
  background:rgba(176,28,46,0.06);
}
.bs-form .wpcf7-spinner{margin:0 0 0 4px;}
.wpcf7-form.init:has(.bs-form) .wpcf7-response-output,
.wpcf7-form.submitting:has(.bs-form) .wpcf7-response-output{display:none;}

/* Safety net: if the [response] tag is left out of the form template, CF7 adds
   its message after the wrapper instead of inside it. Style it there as well. */
.wpcf7-form:has(.bs-form) > .wpcf7-response-output{
  max-width:720px;
  margin:22px 0 0 !important;
  padding:0.95rem 1.15rem !important;
  border:1px solid rgba(13,27,62,0.12) !important;
  border-left:3px solid #566280 !important;
  border-radius:12px !important;
  background:rgba(13,27,62,0.03);
  font-size:0.9rem;
  line-height:1.55;
  color:#0b1a3d;
}
body.bs-fw-dark-page .wpcf7-form:has(.bs-form) > .wpcf7-response-output,
body:not(.bs-articles-light) .wpcf7-form:has(.bs-form) > .wpcf7-response-output{
  border-color:rgba(255,255,255,0.14) !important;
  background:rgba(255,255,255,0.05);
  color:#fff;
}

/* reCAPTCHA / hidden controls should not leave a gap */
.bs-form .wpcf7-form-control-wrap[data-name="g-recaptcha-response"]:empty,
.bs-form .grecaptcha-badge{display:none;}
.bs-form .bs-actions .wpcf7-form-control-wrap:empty{display:none;}

/* ── dark backgrounds ───────────────────────────────────────────────────── */
.bs-form.bs-form--dark,
.bs-fw-dark .bs-form:not(.bs-form--light),
.bs-band--dark .bs-form:not(.bs-form--light),
body.bs-fw-dark-page .bs-form:not(.bs-form--light),
body:not(.bs-articles-light) .bs-form:not(.bs-form--light){
  --bsf-ink:#ffffff;
  --bsf-label:#ffffff;
  --bsf-body:var(--muted,#8a9bbf);
  --bsf-hint:rgba(255,255,255,0.42);
  --bsf-field:rgba(255,255,255,0.05);
  --bsf-border:rgba(255,255,255,0.18);
  --bsf-border-hover:rgba(255,255,255,0.34);
  --bsf-chip:rgba(255,255,255,0.05);
  --bsf-chip-border:rgba(255,255,255,0.18);
  --bsf-teal:var(--teal,#00c9a7);
}
.bs-form.bs-form--dark .wpcf7-list-item label:has(input:checked),
.bs-fw-dark .bs-form:not(.bs-form--light) .wpcf7-list-item label:has(input:checked),
.bs-band--dark .bs-form:not(.bs-form--light) .wpcf7-list-item label:has(input:checked),
body.bs-fw-dark-page .bs-form:not(.bs-form--light) .wpcf7-list-item label:has(input:checked),
body:not(.bs-articles-light) .bs-form:not(.bs-form--light) .wpcf7-list-item label:has(input:checked){
  background:rgba(176,28,46,0.18);
}
.bs-form.bs-form--dark .wpcf7-response-output,
.bs-fw-dark .bs-form:not(.bs-form--light) .wpcf7-response-output,
.bs-band--dark .bs-form:not(.bs-form--light) .wpcf7-response-output,
body.bs-fw-dark-page .bs-form:not(.bs-form--light) .wpcf7-response-output,
body:not(.bs-articles-light) .bs-form:not(.bs-form--light) .wpcf7-response-output{
  border-color:rgba(255,255,255,0.14) !important;
  background:rgba(255,255,255,0.05);
}
.bs-form.bs-form--dark .wpcf7-not-valid-tip,
.bs-fw-dark .bs-form:not(.bs-form--light) .wpcf7-not-valid-tip,
.bs-band--dark .bs-form:not(.bs-form--light) .wpcf7-not-valid-tip,
body.bs-fw-dark-page .bs-form:not(.bs-form--light) .wpcf7-not-valid-tip,
body:not(.bs-articles-light) .bs-form:not(.bs-form--light) .wpcf7-not-valid-tip{
  color:#ff97a4;
}

/* ── small screens ──────────────────────────────────────────────────────── */
@media (max-width:640px){
  .bs-form .bs-grid{grid-template-columns:1fr;gap:20px;}
  .bs-form .bs-grid .bs-field{margin-bottom:0;}
  .bs-form .wpcf7-checkbox,
  .bs-form .wpcf7-radio{gap:8px;}
  .bs-form .wpcf7-list-item label{width:100%;border-radius:var(--bsf-radius);}
  .bs-form .bs-actions{gap:12px;}
  .bs-form input[type=submit],
  .bs-form .wpcf7-submit{width:100%;}
}
