/* ==========================================================================
   BCI Solutions Group — site stylesheet
   Visual direction: Industrial / steel-blue (navy + steel + amber)
   One parent brand, three division accent colors.
   No build step — plain CSS, custom properties for theming.
   ========================================================================== */

:root {
  /* Parent brand */
  --navy:        #0f2742;
  --navy-deep:   #0a1c30;
  --navy-soft:   #18375c;

  /* Division accents */
  --steel:       #2d6cb0; /* Mechanical */
  --teal:        #647079; /* Controls (gray) */
  --amber:       #c9a227; /* Electrical (gold) */

  /* Action / contrast accent (gray) */
  --accent:      #5f6b7a;
  --accent-dark: #45505d;

  /* Neutrals */
  --ink:    #18222e;
  --muted:  #5b6b7d;
  --line:   #e3e8ef;
  --bg:     #ffffff;
  --bg-alt: #f4f6f9;
  --bg-dark:#0c2138;

  /* The division accent for the current page. Default = parent steel-blue.
     Each division page overrides --division on <body>. */
  --division: var(--steel);

  --radius: 10px;
  --maxw: 1180px;
  --shadow: 0 6px 24px rgba(15, 39, 66, 0.10);
  --shadow-lg: 0 14px 40px rgba(15, 39, 66, 0.16);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--division);
  margin-bottom: .6rem;
}

.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #dce6f1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 52px 0; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--division { background: var(--division); color: #fff; }
.btn--division:hover { filter: brightness(1.08); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--division); color: var(--division); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(15, 39, 66, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--division);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;                 /* normal header bar — default on all pages */
  transition: height .35s ease;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 1.05rem; letter-spacing: -.03em;
}
.brand-text { color: #fff; line-height: 1.05; }
.brand-text strong { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: .01em; }
.brand-text span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #9db4cf; }
.brand-logo {
  height: 58px; width: auto; display: block; padding: 5px 0;
  margin-bottom: 0;              /* small Solutions Group logo by default (all pages) */
  box-sizing: content-box;
  transition: height .35s ease, margin-bottom .35s ease;
}

/* ===== Home page only: large logo overhanging the slim bar, over the hero ===== */
@media (min-width: 901px) {
  .home .site-header:not(.scrolled) .nav { height: 72px; }
  .home .site-header:not(.scrolled) .brand-logo { height: 135px; margin-bottom: -85px; }
  .home .hero { padding-top: 168px; }
}
.footer-brand .brand-logo { height: 58px; padding: 0; margin-bottom: 16px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #cdd9e8; font-weight: 600; font-size: .95rem;
  padding: 9px 13px; border-radius: 6px;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 5px;
  background: var(--division); border-radius: 2px;
}
.nav-links .nav-cta {
  margin-left: 6px; background: var(--accent); color: #fff;
}
.nav-links .nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10,28,48,.47), rgba(15,39,66,.39)),
    var(--hero-img, linear-gradient(120deg, #14304f, #0a1c30));
  background-size: cover; background-position: center;
  padding: 104px 0 88px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--steel), var(--teal), var(--amber));
}
.hero h1 { color: #fff; max-width: 32ch; }
.hero h1 .nowrap { white-space: nowrap; }
.hero .lead { color: #d6e2ef; max-width: 56ch; }
.hero .eyebrow { color: #8fc0ff; }
/* Anchor the hero image to the top instead of center (top of the photo matters). */
.hero--top { background-position: center top; }
/* Hireology jobs widget — make the injected iframe full-width. */
#hireology_iframe iframe { width: 100%; border: 0; }
.hero--division::after { background: var(--division); }
/* Division logo shown prominently in the hero of each division page. */
.hero-division-logo {
  display: block; width: auto; max-width: 100%;
  height: clamp(80px, 14vw, 170px);
  margin: 0 0 22px;
}

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Division cards on home page */
.div-card {
  display: flex; flex-direction: column;
  border-top: 5px solid var(--card-accent, var(--steel));
  text-decoration: none; color: inherit;
}
.div-card:hover { text-decoration: none; }
.div-card .div-icon {
  width: 52px; height: 52px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; color: #fff; font-size: 1.5rem;
  background: var(--card-accent, var(--steel));
}
.div-card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--card-accent, var(--steel)); }
.div-card .more::after { content: " →"; }

.icon-card { text-align: left; }
.icon-card .ic {
  width: 46px; height: 46px; border-radius: 9px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: var(--division);
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.section--dark .stat .num { color: #fff; }
.stat .lbl { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); font-weight: 700; }
.section--dark .stat .lbl { color: #9db4cf; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split-media { order: 2; }
.media-box {
  border-radius: var(--radius); min-height: 320px; box-shadow: var(--shadow);
  background: var(--photo, linear-gradient(135deg, var(--navy-soft), var(--division)));
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.media-box .photo-note {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  font-size: .78rem; color: rgba(255,255,255,.9); background: rgba(10,28,48,.45);
  padding: 7px 10px; border-radius: 6px;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #fff; background: var(--division); width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  margin-top: 4px;
}

/* ---------- Contact blocks ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-left: 5px solid var(--card-accent, var(--steel));
}
.contact-card h3 { margin-bottom: 4px; }
.contact-card .role { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.contact-card a { font-weight: 600; }
.contact-line { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.contact-line .ci { color: var(--card-accent, var(--steel)); font-weight: 800; width: 18px; }

.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: #fff; border-radius: 14px; padding: 44px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd9e8; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Notes / draft flags ---------- */
.draft-flag {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 8px; padding: 12px 16px; font-size: .9rem; margin-bottom: 22px;
}
.draft-flag strong { color: #7c2d12; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b8c7d9; padding: 56px 0 26px; }
.site-footer a { color: #b8c7d9; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: #7e93a8;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); font-weight: 700; font-size: .8rem;
}
.footer-social a:hover { background: var(--accent); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .split--reverse .split-media { order: 0; }
  .footer-grid { gap: 30px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 14px 16px; display: none;
    border-bottom: 3px solid var(--division);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; border-radius: 6px; }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 32px 22px; }
}
