/* ==========================================================================
   JFB Technology Group — jfb.css
   Direction: "Operations room" — light, dense, instrumented.
   Deliberately the inverse of Champions Green Energy (dark, warm, spacious)
   so the two sites never read as the same company wearing two hats.
   Type: Instrument Sans (display) / Public Sans (body) / JetBrains Mono (data)
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --paper:      #FBFBF9;   /* ground */
  --paper-2:    #F2F3F0;   /* alternating band */
  --card:       #FFFFFF;
  --ink:        #14181C;   /* cool near-black */
  --ink-2:      #3D4650;   /* secondary text */
  --ink-3:      #6E7883;   /* tertiary / captions */
  --rule:       #DFE1DC;   /* hairline */
  --rule-hard:  #C4C8C1;

  --signal:     #0052A8;   /* royal blue, sampled from the logo */
  --signal-2:   #003D7D;   /* pressed / hover */
  --signal-tint:#E8F0FA;

  --navy:       #071A45;   /* brand navy — dark sections */
  --navy-deep:  #00083F;   /* deepest logo navy */
  --navy-line:  rgba(255,255,255,.12);
  --steel:      #535455;   /* logo wordmark grey */

  /* Functional status only — never decorative */
  --up:         #16794C;
  --degraded:   #B26A05;
  --down:       #B32D25;

  --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --data:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --bay: clamp(3.25rem, 7vw, 6rem);
  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1,h2,h3,h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.021em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* --- 3. Utility ---------------------------------------------------------- */
.wrap { width:100%; max-width: var(--max); margin-inline:auto; padding-inline: var(--gut); }
.bay { padding-block: var(--bay); }
.band { background: var(--paper-2); border-block: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--data); font-size: .6875rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--signal);
  margin: 0 0 1rem;
}
.lede { font-size: clamp(1.0625rem,1.5vw,1.1875rem); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.skip { position:absolute; left:-9999px; background: var(--signal); color:#fff; padding:.75rem 1.25rem; z-index:100; }
.skip:focus { left:1rem; top:1rem; }

/* --- 4. Buttons ---------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.8rem 1.4rem; font-size:.9375rem; font-weight:600;
  text-decoration:none; border:1px solid transparent; cursor:pointer;
  border-radius:3px; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--primary { background: var(--signal); color:#fff; }
.btn--primary:hover { background: var(--signal-2); }
.btn--ghost { border-color: var(--rule-hard); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--quiet { padding:.5rem 0; color: var(--signal); font-size:.875rem; text-decoration:none; border:0; }
.btn--quiet:hover { text-decoration: underline; }

/* --- 5. Masthead --------------------------------------------------------- */
.masthead { position:sticky; top:0; z-index:50; background: rgba(251,251,249,.92);
  backdrop-filter: blur(12px); border-bottom:1px solid var(--rule); }
.masthead__in { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; min-height:70px; }
.logo { display:flex; align-items:center; gap:.65rem; text-decoration:none; flex-shrink:0; }
.logo__mark { width:52px; height:52px; object-fit:contain; flex-shrink:0; }
.logo__txt { font-family:var(--display); font-weight:600; font-size:.9375rem; letter-spacing:-.015em; line-height:1.15; }
.logo__txt span { display:block; font-family:var(--data); font-weight:400; font-size:.5625rem;
  letter-spacing:.15em; text-transform:uppercase; color:var(--ink-3); margin-top:2px; }

.nav { display:flex; align-items:center; gap:1.6rem; }
.nav a { text-decoration:none; font-size:.875rem; color:var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color:var(--ink); }
.masthead__tel { font-family:var(--data); font-size:.8125rem; text-decoration:none; color:var(--ink); white-space:nowrap; }
.navtoggle { display:none; background:none; border:1px solid var(--rule-hard); padding:.5rem .75rem; border-radius:3px; cursor:pointer; }
@media (max-width:920px) {
  .nav { display:none; }
  .nav.is-open { display:flex; flex-direction:column; align-items:flex-start; gap:0;
    position:absolute; inset:70px 0 auto; background:var(--paper); border-bottom:1px solid var(--rule);
    padding:.25rem var(--gut) 1.25rem; }
  .nav.is-open a { padding:.85rem 0; width:100%; border-bottom:1px solid var(--rule); font-size:1rem; }
  .navtoggle { display:block; }
  .masthead__tel { display:none; }
}

/* --- 6. Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(2.75rem,6vw,4.5rem) clamp(2rem,4vw,3rem); }
.hero h1 { font-size: clamp(2.2rem,5.2vw,3.7rem); margin-bottom:1.35rem; max-width:19ch; text-wrap:balance; }
.hero .lede { margin-bottom:2rem; }
.hero__actions { display:flex; flex-wrap:wrap; gap:.75rem; }

/* --- 7. SIGNATURE: Continuity board -------------------------------------- */
.board { border:1px solid var(--rule-hard); background:var(--card); border-radius:3px; overflow:hidden; }
.board__top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:1rem; padding:1rem 1.25rem; border-bottom:1px solid var(--rule); }
.board__title { font-family:var(--data); font-size:.6875rem; letter-spacing:.13em;
  text-transform:uppercase; color:var(--ink-3); }
.board__legend { display:flex; gap:1.1rem; font-family:var(--data); font-size:.6875rem; color:var(--ink-3); }
.board__legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:.4rem; vertical-align:-1px; font-style:normal; }
.lg-up { background:var(--up); } .lg-deg { background:var(--degraded); } .lg-down { background:var(--down); }

.board__rows { padding:.35rem 0; }
.board__row { display:grid; grid-template-columns: 8.5rem 1fr; gap:1rem; align-items:center; padding:.6rem 1.25rem; }
.board__label { font-family:var(--data); font-size:.75rem; color:var(--ink-2); }
.board__track { display:flex; gap:2px; height:16px; }
.board__track i { flex:1; border-radius:1px; background:var(--up); opacity:.85; }
.board__track i.deg { background:var(--degraded); }
.board__track i.down { background:var(--down); }
.board__track i.pend { background:var(--rule); }

.board__axis { display:grid; grid-template-columns:8.5rem 1fr; gap:1rem; padding:.25rem 1.25rem 1rem; }
.board__ticks { display:flex; justify-content:space-between; font-family:var(--data); font-size:.625rem; color:var(--ink-3); }
.board__note { padding:.9rem 1.25rem; border-top:1px solid var(--rule); background:var(--signal-tint);
  font-size:.8125rem; color:var(--ink-2); }
.board__note b { color:var(--ink); font-weight:600; }
@media (max-width:620px) {
  .board__row, .board__axis { grid-template-columns:6rem 1fr; }
  .board__label { font-size:.6875rem; }
}

/* --- 8. Practice table --------------------------------------------------- */
.practice { border-top:1px solid var(--rule-hard); }
.practice__row {
  display:grid; grid-template-columns: 2.25rem 13rem 1fr 8rem; gap:1.5rem;
  padding:1.75rem 0; border-bottom:1px solid var(--rule); align-items:start;
}
.practice__row:hover { background: var(--card); }
.practice__no { font-family:var(--data); font-size:.75rem; color:var(--ink-3); padding-top:.3rem; }
.practice__name { font-family:var(--display); font-weight:600; font-size:1.1875rem; letter-spacing:-.015em; }
.practice__name span { display:block; font-family:var(--data); font-weight:400; font-size:.6875rem;
  color:var(--ink-3); margin-top:.4rem; letter-spacing:.04em; }
.practice__desc { color:var(--ink-2); font-size:.9375rem; }
.practice__desc ul { margin-top:.65rem; display:flex; flex-wrap:wrap; gap:.35rem; }
.practice__desc li { font-family:var(--data); font-size:.6875rem; border:1px solid var(--rule-hard);
  padding:.25rem .55rem; border-radius:2px; color:var(--ink-3); }
.practice__link { padding-top:.2rem; }
@media (max-width:900px) {
  .practice__row { grid-template-columns:2rem 1fr; gap:1rem; }
  .practice__desc, .practice__link { grid-column:2; }
}

/* --- 9. Straight-talk panel ---------------------------------------------- */
.panel { background:var(--card); border:1px solid var(--rule-hard); border-left:3px solid var(--signal);
  padding:clamp(1.5rem,3.5vw,2.5rem); border-radius:3px; }
.panel h2 { font-size:clamp(1.35rem,2.6vw,1.75rem); margin-bottom:1rem; }
.panel p { color:var(--ink-2); max-width:66ch; }
.panel p + p { margin-top:.9rem; }

/* --- 10. Engagement steps ------------------------------------------------ */
.steps { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--rule-hard); border-radius:3px; overflow:hidden; }
.step { padding:1.5rem 1.35rem; background:var(--card); border-right:1px solid var(--rule); }
.step:last-child { border-right:0; }
.step__n { font-family:var(--data); font-size:.6875rem; letter-spacing:.12em; color:var(--signal); display:block; margin-bottom:.85rem; }
.step h3 { font-size:1.0625rem; margin-bottom:.55rem; }
.step p { font-size:.875rem; color:var(--ink-2); }
@media (max-width:900px) { .steps { grid-template-columns:1fr 1fr; }
  .step { border-bottom:1px solid var(--rule); } .step:nth-child(2n) { border-right:0; } }
@media (max-width:560px) { .steps { grid-template-columns:1fr; } .step { border-right:0; } }

/* --- 11. Sector list ----------------------------------------------------- */
.sectors { display:grid; grid-template-columns:repeat(auto-fit,minmax(15rem,1fr)); gap:1px; background:var(--rule);
  border:1px solid var(--rule); }
.sector { background:var(--paper); padding:1.35rem 1.25rem; }
.sector h3 { font-size:1rem; margin-bottom:.45rem; }
.sector p { font-size:.875rem; color:var(--ink-2); }

/* --- 12. CTA ------------------------------------------------------------- */
.cta { background:var(--ink); color:var(--paper); border-radius:3px; padding:clamp(2rem,5vw,3.5rem); }
.cta h2 { font-size:clamp(1.6rem,3.4vw,2.4rem); margin-bottom:1rem; max-width:22ch; color:#fff; }
.cta p { color:#B8BFC7; max-width:54ch; margin-bottom:2rem; }
.cta .btn--primary { background:#fff; color:var(--ink); }
.cta .btn--primary:hover { background:#E6E8EA; }
.cta .btn--ghost { border-color:rgba(255,255,255,.3); color:#fff; }
.cta .btn--ghost:hover { border-color:#fff; }

/* --- 13. Legal / ECTA block ---------------------------------------------- */
.legalblock { border:1px solid var(--rule-hard); border-radius:3px; background:var(--card); }
.legalblock__head { padding:1rem 1.25rem; border-bottom:1px solid var(--rule);
  font-family:var(--data); font-size:.6875rem; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-3); }
.legalblock dl { margin:0; display:grid; grid-template-columns:11rem 1fr; }
.legalblock dt, .legalblock dd { padding:.7rem 1.25rem; margin:0; border-bottom:1px solid var(--rule); font-size:.875rem; }
.legalblock dt { font-family:var(--data); font-size:.75rem; color:var(--ink-3); }
.legalblock dd { color:var(--ink); }
.legalblock dl > :nth-last-child(-n+2) { border-bottom:0; }
@media (max-width:620px) {
  .legalblock dl { grid-template-columns:1fr; }
  .legalblock dt { border-bottom:0; padding-bottom:.15rem; }
}

/* --- 14. Footer ---------------------------------------------------------- */
.foot { border-top:1px solid var(--rule); padding-block:clamp(2.5rem,5vw,3.5rem) 1.75rem; background:var(--paper-2); }
.foot__grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:2rem; margin-bottom:2.5rem; }
@media (max-width:860px) { .foot__grid { grid-template-columns:1fr 1fr; } }
@media (max-width:480px) { .foot__grid { grid-template-columns:1fr; } }
.foot h4 { font-family:var(--data); font-weight:400; font-size:.625rem; letter-spacing:.15em;
  text-transform:uppercase; color:var(--ink-3); margin-bottom:1rem; }
.foot li { margin-bottom:.55rem; }
.foot a { text-decoration:none; color:var(--ink-2); font-size:.875rem; }
.foot a:hover { color:var(--ink); text-decoration:underline; }
.foot address { font-style:normal; font-size:.875rem; color:var(--ink-2); line-height:1.7; }
.foot__bottom { border-top:1px solid var(--rule); padding-top:1.5rem;
  display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; justify-content:space-between;
  font-family:var(--data); font-size:.6875rem; color:var(--ink-3); }

/* --- 15. Bridge callout (page-level cross-brand pointer) ------------------ */
.bridge { background: var(--signal-tint); border: 1px solid #C9D3F7; border-radius: 3px;
  padding: clamp(1.5rem,3.5vw,2.25rem); }
.bridge h2 { font-size: clamp(1.3rem,2.5vw,1.65rem); margin-bottom: .9rem; max-width: 26ch; }
.bridge p { color: var(--ink-2); max-width: 64ch; }
.bridge p + p { margin-top: .8rem; }
.bridge__actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }

/* --- 16. Technical diagrams ---------------------------------------------- */
.diagram { border:1px solid var(--rule-hard); border-radius:3px; background:var(--card); margin-bottom:1.25rem; }
.diagram__head { padding:.9rem 1.25rem; border-bottom:1px solid var(--rule);
  font-family:var(--data); font-size:.6875rem; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-3); }
.diagram__body { padding:1.5rem 1.25rem; overflow-x:auto; }
.diagram__body svg { min-width:520px; margin-inline:auto; }
.diagram__key { padding:1rem 1.25rem; border-top:1px solid var(--rule); background:var(--paper-2); }
.diagram__key li { font-size:.875rem; color:var(--ink-2); padding:.3rem 0; }
.diagram__key b { color:var(--ink); font-weight:600; }

.dg-box { fill:var(--card); stroke:var(--ink-3); stroke-width:1.3; }
.dg-box--live { stroke:var(--signal); }
.dg-wire { stroke:var(--ink-3); stroke-width:1.3; fill:none; }
.dg-wire--live { stroke:var(--signal); stroke-width:1.5; fill:none; }
.dg-t { font-family:var(--data); font-size:9.5px; fill:var(--ink-2); }
.dg-t--sm { font-family:var(--data); font-size:8px; fill:var(--ink-3); }

/* --- 17. Two-column split ------------------------------------------------ */
.split { display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.5rem,4vw,3rem); align-items:start; }
@media (max-width:860px) { .split { grid-template-columns:1fr; } }

/* --- Required-field marker --------------------------------------------- */
.req { color: var(--signal); font-weight: 700; }


/* ==========================================================================
   Brand layer — added after the logo was supplied.
   Dark navy sections give the page visual weight and carry the logo's palette.
   ========================================================================== */

/* --- Brand hero ----------------------------------------------------------- */
.hero-brand {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 85% 15%, rgba(0,82,168,.55), transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 100%, rgba(0,82,168,.25), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
/* faint globe-grid texture, echoing the logo's globe */
.hero-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 80% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 40%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero-brand__grid {
  position: relative; display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-brand .eyebrow { color: #8FB8EC; }
.hero-brand h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff;
  margin-bottom: 1.3rem; max-width: 18ch; text-wrap: balance;
}
.hero-brand .lede { color: #C3D2EA; margin-bottom: 2rem; }
.hero-brand__emblem {
  justify-self: center; width: 100%; max-width: 360px; height: auto; aspect-ratio: 1 / 1;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
.hero-brand .btn--primary { background: #fff; color: var(--navy); }
.hero-brand .btn--primary:hover { background: #E3ECF8; }
.hero-brand .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.hero-brand .btn--ghost:hover { border-color: #fff; }
@media (max-width: 860px) {
  .hero-brand__grid { grid-template-columns: 1fr; }
  .hero-brand__emblem { max-width: 200px; order: -1; }
}

/* Smaller variant for inner pages */
.hero-brand--inner { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hero-brand--inner .hero-brand__emblem { max-width: 240px; }
.hero-brand--inner h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* --- Strengths strip: four short value points under the hero ------------ */
.strengths-band { background: var(--card); border-bottom: 1px solid var(--rule); }
.strengths { display: grid; grid-template-columns: repeat(4, 1fr); }
.strength { padding: 1.6rem 1.4rem; border-right: 1px solid var(--rule); }
.strength:first-child { padding-left: 0; }
.strength:last-child { border-right: 0; }
.strength__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--signal-tint); color: var(--signal); margin-bottom: .9rem;
}
.strength__icon svg { width: 22px; height: 22px; }
.strength h3 { font-size: 1rem; margin-bottom: .35rem; }
.strength p { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .strengths { grid-template-columns: 1fr 1fr; }
  .strength:nth-child(2) { border-right: 0; }
  .strength:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .strengths { grid-template-columns: 1fr; }
  .strength { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* --- Practice rows get an icon ------------------------------------------- */
.practice__no {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--signal-tint); color: var(--signal); padding-top: 0;
}
.practice__no svg { width: 22px; height: 22px; }

/* --- Navy CTA instead of near-black -------------------------------------- */
.cta {
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(0,82,168,.5), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-deep));
}

/* --- Proof panel (replaces the "straight answer" panel) ------------------ */
.proof {
  background: linear-gradient(135deg, var(--signal-tint), #fff);
  border: 1px solid #C9DAF0; border-left: 4px solid var(--signal);
  border-radius: 4px; padding: clamp(1.75rem, 4vw, 2.75rem);
}
.proof h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 1rem; }
.proof p { color: var(--ink-2); max-width: 68ch; }
.proof p + p { margin-top: .9rem; }
.proof__points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem;
}
.proof__point {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.15rem;
}
.proof__point b { display: block; color: var(--navy); font-family: var(--display);
  font-size: 1rem; margin-bottom: .3rem; }
.proof__point span { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 760px) { .proof__points { grid-template-columns: 1fr; } }

/* --- Footer gets a navy top rule ----------------------------------------- */
.foot { border-top: 3px solid var(--signal); }


/* --- Mobile refinements (from rendered checks) ---------------------------- */
@media (max-width: 600px) {
  /* the menu already reaches Contact — the header button just gets crushed */
  .masthead .btn--primary { display: none; }
  /* emblem shouldn't push the headline below the first screen */
  .hero-brand__emblem { max-width: 130px; }
  .hero-brand { padding-block: 2.5rem 3rem; }
}
@media (max-width: 520px) {
  .strength, .strength:first-child { padding-left: 0; padding-right: 0; }
}
