/* TSL Consulting Engineers, Inc. — hand-rolled stylesheet */
:root {
  --ink: #1c2126;
  --paper: #ffffff;
  --surface: #f3f4f6;
  --muted: #565d66;
  --accent: #0a58ca;
  --accent-ink: #ffffff;
  --mark: #f2b705;
  --border: #dde1e6;
  --radius: 8px;
  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .75rem; }
h3 { font-size: 1.1rem; margin-bottom: .4rem; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px; }
.section .lede { max-width: 68ch; margin-bottom: 1.5rem; color: var(--muted); font-size: 1.05rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.text-link { font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); }
.placeholder-note { margin-top: 1.25rem; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; padding: 14px 20px; }
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.topnav { display: flex; gap: 20px; flex-wrap: wrap; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 600; opacity: .78; }
.topnav a:hover, .topnav a[aria-current="page"] { opacity: 1; color: var(--accent); }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 6px;
  text-decoration: none; font-weight: 600; border: 2px solid transparent;
  font-family: var(--font-head);
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #084a9e; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero — no-photography fallback (d): abstract topo/blueprint illustration
   in brand colors, dark scrimmed band per niche_brief.md's visual-first
   verdict (light site, dark hero). */
.hero-topo {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--mark);
  min-height: min(64vh, 560px);
  display: flex;
  align-items: center;
}
.hero-topo-art {
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 82% 18%, rgba(242,183,5,.16) 0, rgba(242,183,5,.16) 2px, transparent 2px, transparent 34px),
    repeating-radial-gradient(circle at 82% 18%, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 1px, transparent 1px, transparent 34px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px, 34px 34px, 40px 40px, 40px 40px;
  background-position: 0 0, 17px 17px, 0 0, 0 0;
}
.hero-topo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,33,38,.94) 0%, rgba(28,33,38,.75) 48%, rgba(28,33,38,.4) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 96px 20px 84px; max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: var(--mark); margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lede { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 56ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-topo .btn-ghost { border-color: #fff; color: #fff; }
.hero-topo .btn-ghost:hover { background: #fff; color: var(--ink); }

@media (max-width: 720px) {
  .hero-topo { min-height: 0; }
}

/* Cards */
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}
.card p { color: var(--muted); }
.card-mark {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; color: var(--ink); background: var(--mark);
  padding: 3px 9px; border-radius: 999px; margin-bottom: .75rem;
}

/* Callout — Stage 1 placeholder flag */
.callout {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.5rem 0 2rem;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.callout h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.callout p { color: var(--ink); max-width: 68ch; }

/* Proof / reviews */
.proof-section { background: var(--surface); border-radius: var(--radius); }
.proof-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}
.proof-item h3 { margin-bottom: .35rem; }
.proof-item p { color: var(--muted); }
.reviews-strip { margin-top: 2rem; }
.review-card .stars { color: var(--mark); letter-spacing: 2px; margin-bottom: .5rem; }
.review-card .byline { font-size: .9rem; margin-top: .5rem; }

/* CTA band */
.cta-band {
  text-align: center; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 56px 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }

/* Contact */
.contact-layout {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px;
  margin-top: 2rem; align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--paper); color: var(--ink);
}
.contact-form .btn { align-self: flex-start; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-aside .card { padding: 18px 20px; }

/* Footer */
.site-footer {
  margin-top: 56px; padding: 44px 0 28px;
  background: var(--ink); color: rgba(255,255,255,.82);
}
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 24px;
}
.footer-brand { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.site-footer a { color: #fff; }
.hours, .footer-links { list-style: none; }
.hours li, .footer-links li { margin-bottom: .3rem; font-size: .92rem; }
.site-footer .fine { color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }

@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .hero-inner { padding: 64px 20px 56px; }
  .section { padding: 40px 20px; }
  .contact-layout { grid-template-columns: 1fr; }
}
