/*
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: 2.9.1
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%);
  }
  .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); }
  .entry-content blockquote { border-left: 3px solid var(--red); background: var(--card-bg); padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
  .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: #fff; color: #2b3a5c; box-shadow: 0 2px 12px rgba(13,27,62,0.05); }
  .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); }
