/* ============================================================================
   B2 Contracting — rebuilt static site (TradeFlo Sites)
   Faithful reproduction of b2contracting.com (Oxygen/WordPress), rebuilt as
   clean, app-owned HTML/CSS. Design tokens verified from the real Oxygen
   stylesheets — see docs/b2_build_spec. Brand = RED #d72a26 (NOT orange),
   black, white; Poppins 400/700.
   ============================================================================ */

:root {
  --red: #d72a26;          /* primary brand ("orange" class in source, but red) */
  --red-hover: #d0211d;    /* button hover */
  --red-sticky: rgba(167, 29, 25, 0.87); /* #a71d19de sticky header */
  --red-band: #db282b;     /* "Our Solutions" band */
  --ink: #000000;
  --white: #ffffff;
  --muted: #676767;        /* footer / contact body text */
  --hair: #d9d9d9;         /* dashed dividers */
  --hair2: #999999;        /* dotted vertical dividers */
  --maxw: 1340px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 700; margin: 0 0 20px; }
h1 { font-size: 65px; line-height: 75px; }
h2 { font-size: 42px; line-height: 44px; margin-bottom: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; line-height: 22px; text-transform: uppercase; margin-bottom: 22px; }
p  { margin: 0 0 28px; }

/* two-tone heading accents (source class names kept for fidelity). !important so
   the accent always wins over section-level heading colors (solutions band,
   get-in-touch, etc.) — the red/white split is intentional everywhere. */
.orange { color: var(--red) !important; }   /* misnamed in source — value is red */
.white  { color: var(--white) !important; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 15px; width: 100%; }
.section { padding: 100px 15px; }
.section--tight { padding: 75px 15px; }
.text-center { text-align: center; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  min-width: 260px;
  padding: 18px 34px;
  border: none;
  border-radius: 40px;
  background: var(--red);
  color: var(--white);
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.btn:hover { background: var(--red-hover); }
.btn--sm { min-width: auto; padding: 14px 34px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0; z-index: 50;
  padding: 30px 60px;
}
.site-header.is-stuck {
  position: fixed;
  background: var(--red-sticky);
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  padding: 16px 60px;
  animation: slideDown .3s var(--ease);
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo img { width: 180px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a {
  color: var(--white); font-size: 18px; font-weight: 400;
  padding: 10px 18px; transition: color .2s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--red); }
.site-header.is-stuck .main-nav a:hover { color: var(--white); text-decoration: underline; }
.header-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 15px; width: 100%; }
.hero h1 { color: var(--white); text-shadow: 2px 2px 10px rgba(0,0,0,.9); font-size: 50px; line-height: 55px; }
/* interior pages: title right-aligned + vertically centered */
.hero--interior { min-height: 70vh; align-items: flex-end; }
.hero--interior .hero__inner { padding-bottom: 55px; }
.hero--interior h1 { margin: 0; }
/* home: taller, left-aligned, with CTA */
.hero--home { min-height: 88vh; }
.hero--home h1 { margin-bottom: 34px; }
.hero--careers { min-height: 80vh; background-color: #000; }
.hero--careers::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.2);
}
.hero--careers .hero__inner { position: relative; }

/* ---------------------------------------------------------------- section heading */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- split (photo + copy) */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 15px;
}
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: 4px; object-fit: cover; }
.split__body h2 { margin-bottom: 24px; }
.video-btn {
  position: absolute; right: 18px; bottom: 18px; width: 84px; border: 0;
  background: none; cursor: pointer; padding: 0;
}
.video-btn img { width: 100%; }

/* ---------------------------------------------------------------- core values */
.values { background: var(--white); }
.values-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 15px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px;
}
.value { text-align: center; }
.value__icon {
  width: 90px; height: 90px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
}
.value__icon img { width: 46px; height: 46px; filter: brightness(0) invert(1); }
.value h4 { margin-bottom: 14px; }
.value p { font-size: 16px; line-height: 26px; margin: 0; }

/* ---------------------------------------------------------------- full-bleed band */
.band-image { width: 100%; }
.band-image img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- solutions (red band) */
.solutions {
  position: relative; background-color: var(--red-band);
  background-image: url('img/solution-bg.jpg'); background-repeat: repeat;
  color: var(--white); padding: 120px 15px;
}
.solutions .section-head h2, .solutions .section-head p { color: var(--white); }
.solutions-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center;
}
.solution__icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.solution__icon img { width: 100%; height: 100%; object-fit: contain; }
.solution h4 { color: var(--white); }
.solution p { color: var(--white); font-size: 16px; line-height: 26px; margin: 0; }

/* ---------------------------------------------------------------- work (3 blocks) */
.work {
  background-image: url('img/our-work-bg1.jpg'); background-size: cover;
  border-top: 2px dashed var(--hair); padding: 100px 15px;
}
.work__item {
  max-width: var(--maxw); margin: 0 auto 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.work__item:last-child { margin-bottom: 0; }
.work__item:nth-child(even) .work__media { order: -1; }
.work__media img { width: 100%; border-radius: 4px; }
.work__body h2 { margin-bottom: 20px; }
.work__body p { font-size: 16px; line-height: 26px; }

/* ---------------------------------------------------------------- clients */
.clients-grid {
  max-width: var(--maxw); margin: 0 auto 40px; padding: 0 15px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; align-items: center;
}
.clients-grid img { width: 100%; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; }

/* ---------------------------------------------------------------- projects gallery */
.gallery { column-count: 5; column-gap: 10px; max-width: 1600px; margin: 0 auto; padding: 40px 10px; }
.gallery__item { break-inside: avoid; margin-bottom: 10px; position: relative; overflow: hidden; }
.gallery__item img { width: 100%; display: block; }
.gallery__cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; color: #fff; font-weight: 700; font-size: 14px;
  background: rgba(0,0,0,.75); opacity: 0; transition: opacity .25s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; }

/* ---------------------------------------------------------------- careers (live) */
.careers-list { max-width: 900px; margin: 0 auto; padding: 0 15px; display: grid; gap: 24px; }
.job-card {
  border: 1px solid #eee; border-left: 4px solid var(--red); border-radius: 8px;
  padding: 26px 28px; background: #fff;
}
.job-card h3 { font-size: 22px; margin-bottom: 6px; }
.job-card__meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.job-card__desc { font-size: 15px; line-height: 24px; }
.tag-group { margin-top: 14px; }
.tag-group__label { font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-right: 8px; }
.tag { display: inline-block; border: 1px solid #f2c9c8; color: #333; background: #fff5f5;
  border-radius: 999px; padding: 4px 12px; font-size: 12px; margin: 0 6px 6px 0; }
.careers-empty, .careers-loading { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------------------------------------------------------------- contact info */
.contact-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 15px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center;
}
.contact-card__icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.contact-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.contact-card h4 { margin-bottom: 10px; }
.contact-card p, .contact-card a { color: var(--ink); }
.map-embed iframe { width: 100%; height: 600px; border: 0; display: block; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #ccc;
  border-radius: 6px; background: #fff; color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.req { color: var(--red); }
.radio-row { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 4px; }
.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 15px; cursor: pointer; }
.radio input { margin: 0; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.form-block { border-top: 1px solid #eee; padding-top: 24px; margin-top: 10px; }
.form-block > h4 { text-transform: none; font-size: 17px; margin-bottom: 16px; }
.form-subhead { text-align: center; color: var(--red); margin: 40px 0 24px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 22px; }
@media (max-width: 767px) { .form-row-3 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- get in touch */
.get-in-touch {
  background-image: url('img/get-in-touch-bg.jpg'); background-size: cover; background-position: center;
  padding: 110px 15px;
}
.get-in-touch .section-head h2 { color: var(--white); }
.get-in-touch__form {
  max-width: 760px; margin: 0 auto;
  background: rgba(255,255,255,.96); padding: 34px; border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background-image: url('img/footer-bg.jpg'); background-size: cover;
  color: var(--muted); padding: 70px 15px 30px;
}
.footer-cols {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer h4 { color: var(--white); margin-bottom: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--white); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-logo img { width: 160px; margin-left: auto; }
.footer-bottom {
  max-width: var(--maxw); margin: 65px auto 0; padding-top: 35px;
  border-top: 1px solid #202020; text-align: center; font-size: 14px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: underline; }

/* ---------------------------------------------------------------- video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.video-modal.is-open { display: flex; }
.video-modal video { width: min(90vw, 960px); border-radius: 6px; }
.video-modal__close {
  position: absolute; top: 24px; right: 30px; background: none; border: 0; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1340px) {
  .site-header { padding: 24px 30px; }
  .site-header.is-stuck { padding: 14px 30px; }
  .section { padding: 80px 15px; }
  .gallery { column-count: 3; }
}
@media (max-width: 991px) {
  .site-header { padding: 18px 20px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 80vw);
    background: var(--red-sticky); backdrop-filter: blur(4px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 40px; transform: translateX(100%); transition: transform .3s var(--ease);
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav a { font-size: 20px; padding: 12px 0; }
  .header-cta { display: none; }
  .split, .work__item { grid-template-columns: 1fr; gap: 30px; }
  .work__item:nth-child(even) .work__media { order: 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .solutions-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-logo img { margin: 0; }
  h1 { font-size: 40px; line-height: 45px; }
  .hero h1 { font-size: 40px; line-height: 45px; }
  h2 { font-size: 32px; line-height: 36px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .section { padding: 60px 15px; }
  .hero h1 { font-size: 26px; line-height: 30px; }
  h2 { font-size: 25px; line-height: 27px; }
  .values-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { column-count: 2; }
  .btn { min-width: 200px; }
}
