/* JBE Electrical — design #2: black, orange and blue from the Electrical Division logo.
   Loads after styles.css and only overrides what changes. */
:root {
  --navy: #0b0b0b;
  --navy-deep: #000000;
  --blue: #23669b;
  --blue-bright: #2f80c0;
  --spark: #e19325;
  --ink: #111111;
  --body: #3d3d3d;
  --muted: #6e6e6e;
  --line: #e2e2e2;
  --tint: #f5f5f3;
}

/* Header: black with the full logo lockup and a brand stripe underneath */
.site-header { background: #000; border-bottom: 0; }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--spark) 0 70%, #000 70% 71%, var(--blue) 71%);
}
.site-header .wrap { height: 88px; }
.brand .lockup { height: 54px; width: auto; }
.nav a[aria-current="page"]:not(.btn)::after { background: var(--spark); }
.nav { top: 88px; }

/* Buttons: orange primary with black text, like the logo's gold */
.btn-primary { background: var(--spark); color: #000; }
.btn-primary:hover { background: #c97f17; }
.nav .btn { color: #000; }
.btn-outline:hover { border-color: var(--spark); color: var(--ink); }

/* Hero and page banners: solid black with the corner stripes */
.hero, .page-banner { background: #000; }
.stripes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .eyebrow, .page-banner .eyebrow, .dark .eyebrow { color: var(--spark); }
.eyebrow::before { background: var(--blue); }
.hero .eyebrow::before, .page-banner .eyebrow::before, .dark .eyebrow::before { background: var(--spark); }
.hero .wrap > div:first-child, .page-banner .wrap { max-width: 760px; }
.page-banner .wrap { max-width: var(--wrap); }
.page-banner .wrap > * { max-width: 720px; }
.fact-panel { background: rgba(10,10,10,.85); border-color: rgba(225,147,37,.35); }
.fact svg { color: var(--spark); }
.btn-ghost { border-color: rgba(255,255,255,.5); }

/* Cards and sections */
.card .icon { background: rgba(35,102,155,.1); color: var(--blue); }
.card:hover { border-color: var(--spark); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.sector { border-top-color: var(--blue); }
.sector:nth-child(2) { border-top-color: var(--spark); }
.sector:nth-child(3) { border-top-color: #000; }
.sector:nth-child(4) { border-top-color: var(--spark); }
.size-band { background: #000; }
.size-band .bar { background: linear-gradient(90deg, var(--spark), var(--blue)); }
.value .num { color: var(--spark); }
.step::before { color: var(--spark); opacity: .45; }
.chip::before { background: var(--spark); }
.stat b { color: var(--blue); }
.dark { background: #0b0b0b; position: relative; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; pointer-events: none;
  background: linear-gradient(135deg, transparent 0 46%, var(--spark) 46% 52%, transparent 52% 60%, var(--blue) 60%);
  opacity: .9;
}
.dark .wrap { position: relative; }
.ticks svg { color: var(--spark); }
.ticks.light svg { color: var(--blue); }
.group { border-left-color: var(--spark); }
.trust-items svg { color: var(--spark); }
.trust-items { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 36px; }
@media (max-width: 1020px) { .trust-items { grid-template-columns: repeat(2, auto); } }
@media (max-width: 640px) { .trust-items { grid-template-columns: 1fr; } }
@media (min-width: 641px) { .builders.two { grid-template-columns: repeat(2, 1fr); } }
/* Wholesalers: branch name in lighter text; main wholesaler spans the row and stands out */
.builders.two .builder span { font-weight: 400; color: var(--muted, #5b6875); }
.builders.two .builder.main { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; font-size: 1.5rem; }
/* Careers */
.no-jobs { border: 1px dashed var(--line); border-radius: 8px; padding: 32px; text-align: center; max-width: 760px; margin: 0 auto; }
.no-jobs h3 { margin-top: 0; }
.no-jobs p { margin: 0; }
.job { display: flex; flex-direction: column; }
.cards.jobs:has(> .job:only-child) { grid-template-columns: minmax(0, 640px); }
.job ul { margin-bottom: 20px; }
.job .btn { margin-top: auto; align-self: flex-start; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--spark); margin-bottom: 10px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 16px; height: 16px; }
.file-field input[type="file"] { padding: 10px; background: #fff; cursor: pointer; }
.file-field small { display: block; margin-top: 6px; font-size: .84rem; color: var(--muted, #5b6875); }
.form label .req, .form label .opt { font-weight: 400; color: var(--muted, #5b6875); }
.hiring-strip { background: var(--spark); color: #000; font-weight: 600; }
.hiring-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.hiring-strip a { color: #000; text-decoration: underline; font-weight: 700; }

/* Builders: a single tile left on the last row is centred, same size as the others */
@media (min-width: 641px) and (max-width: 1020px) {
  .builders:not(.two) .builder:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 16px) / 2); }
}
@media (min-width: 1021px) {
  .builders:not(.two) .builder:last-child:nth-child(3n+1) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 32px) / 3); }
}

/* Projects: black placeholder with the logo's diagonal stripes */
.project .media {
  background:
    linear-gradient(135deg, transparent 0 62%, var(--spark) 62% 65%, transparent 65% 71%, var(--blue) 71%),
    #000;
}
.project .media .ph { color: rgba(255,255,255,.28); }
.project .meta svg { color: var(--spark); }
.filter[aria-pressed="true"] { background: #000; border-color: #000; }
.filter:hover { border-color: var(--spark); }
.builder { border-top: 3px solid var(--spark); }

/* Call-to-action band: blue with an orange slash */
.cta-band {
  background: linear-gradient(115deg, var(--blue) 0 68%, var(--spark) 68% 70.5%, #000 70.5% 72%, #1b5280 72%);
}
.cta-band .btn-white { color: #000; }
.cta-band .btn-white:hover { background: #f3f3f3; }

/* Contact */
.contact-line svg { color: var(--spark); }
.form input:focus, .form select:focus, .form textarea:focus { outline-color: var(--spark); border-color: var(--spark); }

/* Footer */
footer { background: #000; border-top: 3px solid var(--spark); }
footer .brand .lockup { height: 48px; }
footer .brand { max-width: 100%; }
footer .brand .lockup { max-width: 100%; height: auto; max-height: 48px; }
@media (min-width: 1021px) {
  .foot-top { grid-template-columns: minmax(300px, 1.6fr) 1fr 1fr 1fr; }
}

@media (max-width: 1020px) {
  .cta-band { background: linear-gradient(115deg, var(--blue) 0 80%, var(--spark) 80% 82%, #000 82% 83%, #1b5280 83%); }
}
/* Menu: keep each link on one line; switch to the menu button below 1100px so the links never squash */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #000; padding: 8px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--spark); }
  .nav .btn { margin-top: 12px; border: 0; }
  .menu-toggle { display: block; }
}
@media (max-width: 900px) {
  .nav { background: #000; top: 88px; }
  .nav a[aria-current="page"] { color: var(--spark); }
  .stripes { opacity: .35; }
  .cta-band { background: var(--blue); }
}
@media (max-width: 620px) {
  .site-header .wrap { height: 68px; }
  .nav { top: 68px; }
  .brand .lockup { height: 34px; }
  .stripes { opacity: .22; }
  .dark::before { width: 160px; height: 160px; right: -40px; bottom: -40px; }
}
