/* X-Rebar — styles.css
   Palette: charcoal + steel gray + rebar-rust orange accent
   Distinct from kartconsultingllc.com by design: different type pairing,
   different color system, different layout rhythm and component shapes. */

:root {
  --charcoal: #1b1e22;
  --charcoal-2: #24282e;
  --steel: #4d5560;
  --steel-light: #8b93a1;
  --fog: #eef0f2;
  --white: #ffffff;
  --rust: #c1502e;
  --rust-dark: #9c3d22;
  --rust-light: #e07a52;
  --ok: #3c8a5a;
  --radius: 2px;
  --maxw: 1160px;
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --condensed: "Barlow Condensed", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--charcoal);
  color: var(--fog);
  font-size: 13px;
  padding: 8px 0;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.utility-bar a { color: var(--fog); }
.utility-bar a:hover { color: var(--rust-light); }
.utility-bar .sep { opacity: .4; margin: 0 10px; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid #e4e6e9;
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--charcoal);
}
.brand .mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--steel);
  text-transform: uppercase;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--rust);
  color: var(--rust-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--rust);
  transition: background .15s ease, color .15s ease;
}
.btn-solid {
  background: var(--rust);
  color: var(--white) !important;
}
.btn-solid:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-outline {
  background: transparent;
  color: var(--rust) !important;
}
.btn-outline:hover { background: var(--rust); color: var(--white) !important; }
.btn-light {
  border-color: var(--white);
  color: var(--white) !important;
}
.btn-light:hover { background: var(--white); color: var(--charcoal) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--charcoal);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 55%, #2c2117 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  border: 40px solid rgba(193,80,46,0.15);
  border-radius: 50%;
}
.hero .wrap {
  position: relative;
  padding: 90px 24px 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--rust-light);
}
h1 {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: .3px;
}
.hero p.lede {
  font-size: 18px;
  color: #cfd3d8;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 44px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats div { border-left: 3px solid var(--rust); padding-left: 14px; }
.hero-stats strong {
  display: block;
  font-family: var(--condensed);
  font-size: 22px;
}
.hero-stats span { font-size: 13px; color: var(--steel-light); }

.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 28px;
}
.hero-panel h3 {
  font-family: var(--condensed);
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--rust-light);
}
.hero-panel ul { margin: 0; padding: 0; list-style: none; }
.hero-panel li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.14);
  font-size: 14.5px;
  color: #dfe2e6;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li .chk {
  color: var(--rust-light);
  font-weight: 700;
}

/* ---------- Sections generic ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 40px; text-align: left; }
.kicker {
  font-family: var(--condensed);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
h2 {
  font-family: var(--condensed);
  font-size: 34px;
  margin: 0 0 14px;
  color: var(--charcoal);
}
.section-head p, .section-head.left p { color: var(--steel); font-size: 16.5px; }

.bg-fog { background: var(--fog); }
.bg-charcoal { background: var(--charcoal); color: var(--white); }
.bg-charcoal h2 { color: var(--white); }
.bg-charcoal .kicker { color: var(--rust-light); }

/* ---------- Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid #e6e8eb;
  border-top: 4px solid var(--rust);
  padding: 30px 26px;
  border-radius: var(--radius);
}
.card .num {
  font-family: var(--condensed);
  font-size: 15px;
  color: var(--steel-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}
.card h3 {
  font-family: var(--condensed);
  font-size: 22px;
  margin: 0 0 10px;
}
.card p { color: var(--steel); font-size: 15px; margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 18px; color: var(--charcoal-2); font-size: 14.5px; }
.card ul li { margin-bottom: 6px; }

/* ---------- Process steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 30px 20px 20px;
  background: var(--white);
  border: 1px solid #e6e8eb;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: var(--charcoal);
  color: var(--rust-light);
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-family: var(--condensed); font-size: 19px; margin: 6px 0 8px; }
.step p { font-size: 14.5px; color: var(--steel); margin: 0; }

/* ---------- Why us list ---------- */
.reason {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e6e8eb;
}
.reason:last-child { border-bottom: none; }
.reason .ico {
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  color: var(--rust-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--condensed);
  font-weight: 700;
}
.reason h4 { margin: 0 0 4px; font-size: 17px; }
.reason p { margin: 0; color: var(--steel); font-size: 14.5px; }

/* ---------- Sectors strip ---------- */
.sector-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sector-pill {
  border: 1px solid var(--steel-light);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal-2);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--rust);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #ffe3d6; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--fog);
  padding: 28px;
  border-left: 4px solid var(--rust);
}
.contact-card h3 { font-family: var(--condensed); font-size: 20px; margin: 0 0 14px; }
.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 15px;
}
.contact-line .lbl {
  font-weight: 700;
  min-width: 70px;
  color: var(--rust-dark);
  font-family: var(--condensed);
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: 12.5px;
  padding-top: 3px;
}

form.quote-form { display: grid; gap: 14px; }
form.quote-form label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 6px;
}
form.quote-form input,
form.quote-form select,
form.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6dade;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  background: var(--white);
}
form.quote-form textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: var(--steel-light);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--condensed);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--rust-light); }
.footer-brand p { font-size: 14.5px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 0;
}
.page-hero .kicker { color: var(--rust-light); }
.page-hero h1 { font-size: 36px; margin: 0 0 10px; }
.page-hero p { color: #cfd3d8; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--steel-light); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--rust-light); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 60px; }
  .grid-3, .grid-2, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  header.site-header { position: sticky; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid #e4e6e9;
    border-bottom: 1px solid #e4e6e9;
    padding: 10px 24px 14px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { display: block; padding: 10px 2px; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
