/* ============================================================
   OEC "B" — modern chrome (header + footer)
   Loaded ONLY on the B build. Every rule is namespaced under
   .oecb-header / .oecb-footer so it cannot affect the replicated
   page body (which still ships the original WordPress theme CSS).
   Built on the real OEC brand tokens (Inter; navy #062136/#003c71;
   turquoise #2dc8d8).
   ============================================================ */

/* ---------- Inter (self-hosted, OFL) ---------- */
@font-face{font-family:"InterB";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/Inter-Regular.woff2") format("woff2");}
@font-face{font-family:"InterB";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/Inter-Medium.woff2") format("woff2");}
@font-face{font-family:"InterB";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/Inter-SemiBold.woff2") format("woff2");}
@font-face{font-family:"InterB";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/Inter-Bold.woff2") format("woff2");}

:root{
  --oec-dark-navy:#062136;
  --oec-navy:#003c71;
  --oec-turquoise:#2dc8d8;
  --oec-teal:#12b3a8;
  --oec-lime:#ccd426;
  --oec-coral:#de4f38;
  --oec-yellow:#f4b400;
  --oec-gray:#a0a0a0;
  --oec-light-gray:#f9f9f9;
  --oec-navy-tint:#eaf1f7;
  --oec-turquoise-tint:#e3f7fa;

  --ink:#062136;
  --ink-2:#4d4e53;
  --muted:#6c7a86;
  --muted-2:#a0a0a0;
  --line:#e4e7ea;
  --line-2:#eef1f3;
  --surface-soft:#f9f9f9;

  --oecb-font:"InterB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm:4px; --r-md:8px; --r-lg:14px; --r-pill:30px;
  --sh-sm:0 1px 2px rgba(0,0,0,.06);
  --sh-md:0 4px 20px rgba(0,0,0,.10);
  --sh-lg:0 12px 28px rgba(0,0,0,.16);

  /* match the OEC site container (.container / footer / subnav all use 1275px)
     so the header row aligns with page content instead of running full-width */
  --oecb-maxw:1275px;
  --oecb-gut:clamp(20px,4vw,56px);
  --oecb-nav-h:76px;
  --oecb-ease:cubic-bezier(0.62,0.01,0.37,0.99);
}

/* ============================================================
   HEADER
   ============================================================ */
.oecb-header{display:block; position:sticky; top:0; z-index:300; font-family:var(--oecb-font);}
.oecb-header *{box-sizing:border-box;}
.oecb-header a{color:inherit; text-decoration:none;}
.oecb-header button{font-family:inherit; cursor:pointer;}
.oecb-header img{display:block; max-width:100%;}

.oecb-header .nav{
  height:var(--oecb-nav-h); background:rgba(255,255,255,.92); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line); transition:box-shadow .3s, background .3s;
}
.oecb-header .nav.scrolled{box-shadow:var(--sh-md); background:rgba(255,255,255,.97);}
.oecb-header .nav-inner{max-width:var(--oecb-maxw); margin:0 auto; padding-inline:var(--oecb-gut); height:100%; display:flex; align-items:center; gap:26px;}
.oecb-header .brand{display:flex; align-items:center; gap:11px; flex-shrink:0;}
.oecb-header .brand-logo{height:30px; width:auto;}
.oecb-header .nav-links{display:flex; align-items:center; gap:2px; height:100%;}
.oecb-header .nav-link{
  display:flex; align-items:center; gap:6px; height:100%; padding:0 14px; font-weight:600; font-size:15.5px;
  color:var(--ink-2); position:relative; border:0; background:none;
}
.oecb-header .nav-link:hover{color:var(--oec-navy);}
.oecb-header .nav-link svg{width:14px; height:14px; transition:transform .25s;}
.oecb-header .nav-link[aria-expanded="true"]{color:var(--oec-navy);}
.oecb-header .nav-link[aria-expanded="true"] svg{transform:rotate(180deg);}
.oecb-header .nav-spacer{flex:1;}
.oecb-header .nav-utility{display:flex; align-items:center; gap:6px;}
.oecb-header .nav-util-link{font-size:14.5px; font-weight:600; color:var(--ink-2); padding:9px 12px; border-radius:var(--r-sm); border:0; background:none;}
.oecb-header .nav-util-link:hover{color:var(--oec-navy); background:var(--oec-navy-tint);}

/* buttons (header-scoped) */
.oecb-header .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--oecb-font); font-weight:600; font-size:15px; line-height:1; white-space:nowrap;
  padding:10px 18px; border-radius:var(--r-pill); border:1.5px solid transparent;
  transition:transform .2s var(--oecb-ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.oecb-header .btn svg{width:16px; height:16px;}
.oecb-header .btn-signal{background:var(--oec-turquoise); color:var(--oec-dark-navy);}
.oecb-header .btn-signal:hover{background:#23b7c6; transform:translateY(-1px); box-shadow:var(--sh-md);}
.oecb-header .btn-ghost{background:transparent; color:var(--oec-dark-navy); border-color:var(--oec-gray);}
.oecb-header .btn-ghost:hover{border-color:var(--oec-dark-navy); background:rgba(6,33,54,.03);}
.oecb-header .btn-white{background:#fff; color:var(--oec-navy);}
.oecb-header .btn-white:hover{transform:translateY(-1px); box-shadow:var(--sh-lg);}

/* ---- mega menu ---- */
.oecb-header .mega{
  position:absolute; left:0; right:0; top:var(--oecb-nav-h);
  background:#fff; border-bottom:1px solid var(--line); box-shadow:0 14px 28px rgba(0,0,0,.13);
  opacity:0; visibility:hidden; transform:translateY(-8px); transition:opacity .24s var(--oecb-ease), transform .24s var(--oecb-ease), visibility .24s;
}
.oecb-header .mega.open{opacity:1; visibility:visible; transform:none;}
.oecb-header .mega-inner{max-width:var(--oecb-maxw); margin:0 auto; padding:34px var(--oecb-gut) 40px; display:grid; gap:18px;}
.oecb-header .mega-col h5{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; font-weight:600;}
.oecb-header .mega-item{display:block; padding:10px 12px; border-radius:var(--r-md); transition:background .18s;}
.oecb-header .mega-item:hover{background:var(--oec-turquoise-tint);}
.oecb-header .mega-item .mi-label{font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--oec-teal); margin-bottom:2px;}
.oecb-header .mega-item .mi-name{font-weight:600; font-size:15.5px; color:var(--oec-dark-navy);}
.oecb-header .mega-item .mi-sub{font-size:12.5px; color:var(--muted); margin-top:2px;}
.oecb-header .mega-feature{background:var(--oec-dark-navy); border-radius:var(--r-md); padding:24px; color:#fff; display:flex; flex-direction:column; justify-content:space-between;}
.oecb-header .mega-feature .mf-kicker{font-size:11px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; color:var(--oec-turquoise);}
.oecb-header .mega-feature .mf-title{font-weight:700; font-size:19px; margin-top:10px; line-height:1.18;}

/* products: left rail + stage — constrained to the container like the nav row */
.oecb-header .mega-products{max-width:var(--oecb-maxw); margin:0 auto; padding-inline:var(--oecb-gut); display:grid; grid-template-columns:266px 1fr; min-height:340px;}
.oecb-header .mega-rail{border-right:1px solid var(--line); padding:22px 16px; display:flex; flex-direction:column; gap:2px; background:var(--surface-soft);}
.oecb-header .rail-btn{
  display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left; width:100%;
  padding:12px 14px; border:0; border-radius:var(--r-md); background:none;
  font-weight:600; font-size:15px; color:var(--ink-2); cursor:pointer;
}
.oecb-header .rail-btn:hover{color:var(--oec-dark-navy);}
.oecb-header .rail-btn[aria-selected="true"]{background:#fff; color:var(--oec-dark-navy); box-shadow:var(--sh-sm);}
.oecb-header .rail-arrow{opacity:0; transition:opacity .2s; display:inline-flex;}
.oecb-header .rail-arrow svg{width:15px; height:15px;}
.oecb-header .rail-btn[aria-selected="true"] .rail-arrow{opacity:1;}
.oecb-header .mega-stage{position:relative;}
.oecb-header .mega-panel{display:none; grid-template-columns:1fr 300px; gap:22px; padding:28px 32px;}
.oecb-header .mega-panel.is-active{display:grid;}
.oecb-header .mega-prods{display:grid; grid-template-columns:1fr 1fr; gap:4px; align-content:start;}
.oecb-header .mega-side{display:flex; flex-direction:column; gap:12px;}
.oecb-header .mega-all{display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:14px; color:var(--oec-navy); padding:8px 12px;}
.oecb-header .mega-all svg{width:15px; height:15px;}
.oecb-header .mega-feature .btn svg{width:16px; height:16px;}

/* column layouts */
.oecb-header .mega-solutions{grid-template-columns:1fr 1.2fr 1.2fr 1.1fr;}
.oecb-header .mega-resources{grid-template-columns:1fr 1fr 1.4fr;}
.oecb-header .mega-company{grid-template-columns:1fr 1.6fr;}

/* language switcher */
.oecb-header .lang{position:relative;}
.oecb-header .lang-btn{display:inline-flex; align-items:center; gap:6px; font-size:14.5px; font-weight:600; color:var(--ink-2); padding:9px 10px; border:0; border-radius:var(--r-sm); background:none;}
.oecb-header .lang-btn:hover{color:var(--oec-navy); background:var(--oec-navy-tint);}
.oecb-header .lang-btn svg{width:16px; height:16px;}
.oecb-header .lang-caret svg{width:12px; height:12px; transition:transform .2s;}
.oecb-header .lang[data-open] .lang-caret svg{transform:rotate(180deg);}
.oecb-header .lang-menu{position:absolute; right:0; top:calc(100% + 8px); min-width:220px; background:#fff; border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--sh-lg); padding:8px; display:none; z-index:320;}
.oecb-header .lang[data-open] .lang-menu{display:block;}
.oecb-header .lang-opt{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:var(--r-sm); font-size:14.5px; color:var(--ink-2);}
.oecb-header a.lang-opt:hover{background:var(--oec-turquoise-tint); color:var(--oec-dark-navy);}
.oecb-header .lang-opt.is-current{color:var(--oec-navy); font-weight:600;}
.oecb-header .lang-opt.is-soon{color:var(--muted-2);}
.oecb-header .lang-soon{font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted-2); background:var(--oec-light-gray); padding:3px 7px; border-radius:var(--r-sm);}

.oecb-header .nav-toggle{display:none;}
.oecb-header .mobile-menu{display:none;}

@media (max-width:1080px){
  .oecb-header .nav-links, .oecb-header .nav-utility .desktop-only{display:none;}
  .oecb-header .nav-toggle{display:inline-flex; font-size:20px; line-height:1; padding:8px 10px;}
  .oecb-header.mobile-open .mobile-menu{
    display:flex; flex-direction:column; padding:12px var(--oecb-gut) 22px; background:#fff; border-bottom:1px solid var(--line);
  }
  .oecb-header .mobile-menu a{padding:12px 4px; font-weight:600; color:var(--ink-2); border-bottom:1px solid var(--line-2);}
}
@media (max-width:760px){
  .oecb-header .mega-products{grid-template-columns:1fr;}
  .oecb-header .mega-rail{flex-direction:row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line);}
  .oecb-header .mega-panel, .oecb-header .mega-prods{grid-template-columns:1fr;}
  .oecb-header .mega-solutions, .oecb-header .mega-resources, .oecb-header .mega-company{grid-template-columns:1fr;}
}

/* ============================================================
   HOME HERO (B only) — modern navy band, replaces the WP home hero.
   On the home page, body.home gets class via JS-free marker: we hide the
   first WP hero with a scoped rule and render .oecb-hero above the body.
   ============================================================ */
.oecb-hero{
  font-family:var(--oecb-font);
  background:radial-gradient(130% 120% at 78% -20%, #16456A 0%, #0A2238 46%, #06182B 100%);
  color:#fff; position:relative; overflow:hidden;
  padding:clamp(56px,9vw,112px) 0 clamp(60px,9vw,104px);
}
.oecb-hero *{box-sizing:border-box;}
.oecb-hero::before{content:""; position:absolute; inset:0; background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.06) 1px,transparent 0); background-size:36px 36px; mask-image:radial-gradient(80% 80% at 70% 20%,#000,transparent);}
.oecb-hero .hero-inner{max-width:1275px; margin:0 auto; padding-inline:var(--oecb-gut); position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;}
.oecb-hero .eyebrow{display:inline-block; font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--oec-dark-navy); background:var(--oec-turquoise); padding:.45em .9em; border-radius:var(--r-sm); line-height:1;}
.oecb-hero h1{margin:20px 0 0; color:#fff; font-weight:700; letter-spacing:-.02em; line-height:1.04; font-size:clamp(38px,5.4vw,64px);}
.oecb-hero h1 .hl{color:var(--oec-turquoise);}
.oecb-hero .lead{margin:22px 0 0; max-width:52ch; font-size:clamp(17px,1.4vw,20px); line-height:1.6; color:rgba(255,255,255,.82);}
.oecb-hero .hero-cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:30px;}
.oecb-hero .btn{display:inline-flex; align-items:center; justify-content:center; gap:9px; font-family:var(--oecb-font); font-weight:600; font-size:16px; line-height:1; padding:14px 28px; border-radius:var(--r-pill); border:1.5px solid transparent; transition:transform .2s, box-shadow .2s, background .2s, border-color .2s;}
.oecb-hero .btn-signal{background:var(--oec-turquoise); color:var(--oec-dark-navy);}
.oecb-hero .btn-signal:hover{background:#23b7c6; transform:translateY(-2px); box-shadow:var(--sh-md);}
.oecb-hero .btn-ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.3);}
.oecb-hero .btn-ghost:hover{border-color:#fff; background:rgba(255,255,255,.06);}
.oecb-hero .hero-stats{display:flex; gap:36px; margin-top:46px; flex-wrap:wrap;}
.oecb-hero .hero-stat b{display:block; font-weight:700; letter-spacing:-.02em; line-height:1; font-size:34px;}
.oecb-hero .hero-stat b em{font-style:normal; color:var(--oec-turquoise);}
.oecb-hero .hero-stat span{display:block; margin-top:6px; font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:rgba(255,255,255,.6);}

/* orbital motif */
.oecb-hero .orbit{position:relative; width:100%; max-width:480px; aspect-ratio:1/1; margin-inline:auto;}
.oecb-hero .orbit-ring{position:absolute; border-radius:50%;}
.oecb-hero .orbit-ring.r1{inset:0; border:1.5px dashed rgba(45,200,216,.38); animation:oecb-spin 46s linear infinite;}
.oecb-hero .orbit-ring.r2{inset:9%; border:1.5px solid rgba(255,255,255,.10);}
.oecb-hero .orbit-ring.r3{inset:19%; border:1.5px dashed rgba(204,212,38,.4); animation:oecb-spin 32s linear infinite reverse;}
.oecb-hero .orbit-photo{position:absolute; inset:25%; border-radius:50%; overflow:hidden; box-shadow:0 30px 70px -20px rgba(0,0,0,.6); border:2px solid rgba(255,255,255,.14);}
.oecb-hero .orbit-photo img{width:100%; height:100%; object-fit:cover;}
.oecb-hero .orbit-photo::after{content:""; position:absolute; inset:0; background:linear-gradient(150deg,rgba(45,200,216,.55),rgba(18,179,168,.28) 45%,rgba(204,212,38,.5)); mix-blend-mode:hard-light;}
.oecb-hero .orbit-dot{position:absolute; width:13px; height:13px; border-radius:50%; background:linear-gradient(140deg,var(--oec-turquoise),var(--oec-lime)); box-shadow:0 0 14px rgba(45,200,216,.9); transform:translate(-50%,-50%);}
.oecb-hero .orbit-node{position:absolute; transform:translate(-50%,-50%); z-index:3;}
.oecb-hero .orbit-chip{display:flex; align-items:center; gap:8px; padding:8px 14px; border-radius:var(--r-pill); background:rgba(8,28,46,.66); border:1px solid rgba(45,200,216,.32); backdrop-filter:blur(8px); font-size:13px; font-weight:600; color:#fff; white-space:nowrap; box-shadow:0 8px 22px -8px rgba(0,0,0,.5);}
.oecb-hero .orbit-chip i{width:7px; height:7px; border-radius:50%; background:var(--oec-turquoise); font-style:normal;}
@keyframes oecb-spin{to{transform:rotate(360deg);}}

/* hide the WP home hero only on B's home page */
body.home .hero.is-style-home{display:none !important;}

@media (prefers-reduced-motion:reduce){ .oecb-hero .orbit-ring{animation:none;} }
@media (max-width:900px){
  .oecb-hero .hero-inner{grid-template-columns:1fr;}
  .oecb-hero .orbit{display:none;}
}

/* ============================================================
   FOOTER
   ============================================================ */
.oecb-footer{display:block; background:var(--oec-dark-navy); color:rgba(255,255,255,.7); font-family:var(--oecb-font);}
.oecb-footer *{box-sizing:border-box;}
.oecb-footer a{color:inherit; text-decoration:none;}
.oecb-footer img{display:block; max-width:100%;}
.oecb-footer .footer-top{max-width:1275px; margin:0 auto; padding:72px var(--oecb-gut) 48px; display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:40px;}
.oecb-footer .footer-brand .brand-logo{filter:brightness(0) invert(1); height:32px;}
.oecb-footer .footer-tag{margin:18px 0 0; max-width:34ch; color:rgba(255,255,255,.6); font-size:15px; line-height:1.6;}
.oecb-footer .footer-tagline{margin:14px 0 0; font-weight:600; font-size:15px; color:var(--oec-turquoise);}
.oecb-footer .footer-cta{display:flex; gap:10px; margin-top:22px; flex-wrap:wrap;}
.oecb-footer .btn{display:inline-flex; align-items:center; gap:8px; font-family:var(--oecb-font); font-weight:600; font-size:15px; line-height:1; padding:11px 20px; border-radius:var(--r-pill); border:1.5px solid transparent; transition:transform .2s, box-shadow .2s, background .2s;}
.oecb-footer .btn-primary{background:var(--oec-navy); color:#fff;}
.oecb-footer .btn-primary:hover{background:#0a2a4d; transform:translateY(-1px);}
.oecb-footer .btn-ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.25);}
.oecb-footer .btn-ghost:hover{border-color:#fff;}
.oecb-footer .footer-col h6{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.45); margin:0 0 16px; font-weight:600;}
.oecb-footer .footer-col a{display:block; padding:6px 0; color:rgba(255,255,255,.72); font-size:15px;}
.oecb-footer .footer-col a:hover{color:#fff;}
.oecb-footer .footer-bottom{border-top:1px solid rgba(255,255,255,.1);}
.oecb-footer .footer-bottom-inner{max-width:1275px; margin:0 auto; padding:22px var(--oecb-gut); display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:13.5px; color:rgba(255,255,255,.5);}
.oecb-footer .footer-bottom-inner a{color:inherit;}
.oecb-footer .footer-bottom-inner a:hover{color:#fff;}
.oecb-footer .footer-social{display:flex; gap:10px;}
.oecb-footer .footer-social a{width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.16); display:grid; place-items:center; color:rgba(255,255,255,.7);}
.oecb-footer .footer-social a:hover{background:var(--oec-turquoise); border-color:var(--oec-turquoise); color:var(--oec-dark-navy);}
.oecb-footer .footer-social svg{width:17px; height:17px;}
@media (max-width:860px){ .oecb-footer .footer-top{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .oecb-footer .footer-top{grid-template-columns:1fr;} }
