/* ============================================================
   BALU & ASSOCIATES — Public Health Engineers & Fire Fighting Consultants
   Design system: technical / blueprint-informed engineering identity
   ============================================================ */

:root {
  /* Color tokens */
  --ink: #0A2A3D;          /* deep blueprint navy — headings, primary */
  --ink-soft: #143C54;     /* secondary navy */
  --water: #1C7EA5;        /* water/plumbing blue — links, accents */
  --water-light: #E8F3F8;  /* pale wash for section backgrounds */
  --fire: #C6462B;         /* fire-fighting red-orange — used sparingly */
  --fire-soft: #FBEAE5;
  --paper: #FCFBF8;        /* base background, warm white */
  --line: #D8DDE1;         /* hairline / rule color */
  --slate: #4C5B66;        /* body text */
  --slate-light: #7C8A93;

  /* Type */
  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --container: 1200px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-transform: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--water);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

a { color: var(--water); text-decoration: none; }
a:hover { color: var(--ink); }

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

/* ---------- Blueprint grid texture (signature element) ---------- */
.blueprint-bg {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand-wrap { display: flex; align-items: center; gap: 12px; }
.navbar-brand-wrap img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.15rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--slate-light); text-transform: uppercase; margin-top: 2px; }

.main-nav .nav-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.5rem 1rem !important;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--water); }

.btn-fire {
  background: var(--fire);
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
}
.btn-fire:hover { background: #A63A24; color: #fff; }

.btn-outline-ink {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  background: transparent;
}
.btn-outline-ink:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 820px; }
.hero .lead-sub { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 560px; margin-top: 1rem; }
.hero .stat-strip {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.75rem;
}
.stat-figure { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: #fff; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--water-light); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Service / spec cards ---------- */
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.spec-card:hover { border-color: var(--water); transform: translateY(-2px); }
.spec-card .idx { font-family: var(--font-mono); font-size: 0.75rem; color: var(--water); letter-spacing: 0.06em; }
.spec-card h3 { font-size: 1.15rem; margin: 0.6rem 0 0.6rem; }
.spec-card p { font-size: 0.93rem; color: var(--slate); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.site-footer h5 { color: #fff; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ---------- Utility ---------- */
.text-water { color: var(--water) !important; }
.text-fire { color: var(--fire) !important; }
.bg-water-light { background: var(--water-light); }

@media (max-width: 767px) {
  .hero { padding: 80px 0 60px; }
  section { padding: 56px 0; }
  .navbar-brand-wrap img { height: 36px; }
  .brand-text { font-size: 0.95rem; }
  .brand-text small { font-size: 0.55rem; }
  .filter-bar, .toolbar { position: static; } /* avoid overlapping the mobile nav dropdown */
  table.clientele { font-size: 0.82rem; }
  table.clientele thead th, table.clientele tbody td { padding: 8px; }
}
