/* SPL Leak Detection — static rebuild 2026-05-20
   Visual rebuild with full-bleed photo heroes per page, logo in nav,
   team-photo grid on /about. Single stylesheet, no JS dependency. */

:root {
  --brand: #0a4d76;
  --brand-dark: #062e47;
  --accent: #d97706;
  --fg: #1b1f24;
  --muted: #5a6068;
  --bg: #fbfbfd;
  --card: #ffffff;
  --line: #e3e6ea;
  --max-w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--fg); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ──────────────────────────────────────────────── */
header.site {
  background: var(--brand-dark);
  padding: 12px 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
header.site .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
header.site .brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
header.site .brand img { height: 44px; width: auto; }
header.site .brand-text { font-weight: 700; font-size: 16px; letter-spacing: .04em; }
header.site nav { display: flex; align-items: center; gap: 4px; }
header.site nav a {
  color: #fff; opacity: .85; padding: 8px 14px; font-size: 14px;
  letter-spacing: .03em; text-transform: uppercase; font-weight: 500;
  border-radius: 4px;
}
header.site nav a:hover { opacity: 1; background: rgba(255,255,255,.08); text-decoration: none; }
header.site nav a.cta {
  background: var(--accent); color: #fff;
  margin-left: 10px;
}
header.site nav a.cta:hover { background: #b85f04; }
@media (max-width: 720px) {
  header.site nav a { padding: 6px 8px; font-size: 12px; }
  header.site .brand img { height: 36px; }
  header.site .brand-text { display: none; }
}

/* ─── Hero (full-bleed photo) ─────────────────────────────── */
section.hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center;
  overflow: hidden;
  background: var(--brand-dark);
}
section.hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55);
}
section.hero .hero-inner {
  position: relative; z-index: 2;
  max-width: 920px; padding: 80px 24px;
}
section.hero h1 {
  font-size: clamp(28px, 4.2vw, 48px); line-height: 1.15; font-weight: 700;
  margin: 0 0 18px; letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
section.hero p.lede {
  font-size: clamp(16px, 1.8vw, 20px); margin: 0 auto 32px; max-width: 760px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
section.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: .04em;
  text-transform: uppercase; border: 2px solid transparent; transition: all .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: #b85f04; border-color: #b85f04; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn.dark { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.dark:hover { background: var(--brand-dark); }

/* ─── Content blocks ──────────────────────────────────────── */
main { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
section.block:last-child { border-bottom: none; }
section.block h2 {
  font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 14px;
  letter-spacing: -.01em; color: var(--brand-dark);
}
section.block .eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-size: 12px;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
section.block h3 { font-size: 19px; margin: 24px 0 8px; color: var(--brand); }
section.block p { margin: 0 0 14px; }

/* Visual / text two-column layout */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center; margin-top: 28px;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split.reverse .text { order: 2; }
.split .visual img { border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.08); }
@media (max-width: 820px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .text { order: initial; }
}

/* Card row */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px; margin-top: 32px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.card .card-img {
  aspect-ratio: 16/10; background-size: cover; background-position: center;
}
/* Diagram variant — for technical illustrations with whitespace (e.g. the
   sensor-wave). Contains the full image without cropping; tinted backdrop
   so the diagram reads as intentional, not as a photo that failed to load. */
.card .card-img.card-img-diagram {
  background: linear-gradient(135deg, #f3f6f9 0%, #e6ecf2 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.card .card-img.card-img-diagram img {
  width: 100%; height: 100%;
  object-fit: contain; max-height: 100%;
  display: block;
}
.card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 10px; color: var(--brand-dark); }
.card .link { font-weight: 600; margin-top: auto; padding-top: 12px; }
.card .link::after { content: " →"; }

/* Spec grid */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; list-style: none; padding: 0; margin: 26px 0;
}
.features li {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px; font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.features li::before {
  content: "✓"; color: var(--accent); font-weight: 700; font-size: 16px;
}

/* Team grid */
.team {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 32px;
}
.team .member {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.team .member .photo {
  /* Source photos are 4:3 landscape — match the container so we don't
     crop the subject. background-position: center 30% biases the visible
     area slightly upward to favor faces over feet without forcing the
     image into an aspect ratio that crops the sides. */
  aspect-ratio: 4/3; background-size: cover; background-position: center 30%;
  background-color: #ddd;
}
.team .member .info { padding: 22px; }
.team .member h3 { margin: 0 0 4px; color: var(--brand-dark); font-size: 20px; }
.team .member .role {
  font-size: 13px; color: var(--accent); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600; margin-bottom: 14px;
}
.team .member p { font-size: 14px; margin: 0; }
.team .member.memorial { border-top: 4px solid var(--accent); }
.team .member.memorial .role { color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
  margin-top: 28px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-grid .info h3 { margin: 0 0 14px; color: var(--brand); }
.contact-grid .info .label {
  font-weight: 700; color: var(--brand-dark); margin-top: 20px;
  text-transform: uppercase; font-size: 12px; letter-spacing: .12em;
}
.contact-grid .info p { margin: 4px 0; }
form.lead {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
form.lead h3 { margin: 0 0 4px; color: var(--brand-dark); }
form.lead label {
  display: block; margin-top: 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark);
}
form.lead input, form.lead textarea {
  width: 100%; padding: 11px 14px; margin-top: 5px;
  border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
form.lead input:focus, form.lead textarea:focus {
  outline: none; border-color: var(--brand);
}
form.lead button {
  margin-top: 22px; padding: 14px 28px; background: var(--brand);
  color: #fff; border: 0; border-radius: 6px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 13px; cursor: pointer;
}
form.lead button:hover { background: var(--brand-dark); }
form.lead .form-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ─── Footer ──────────────────────────────────────────────── */
footer.site {
  background: var(--brand-dark); color: rgba(255,255,255,.85);
  padding: 48px 24px 32px;
}
footer.site .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  font-size: 14px;
}
footer.site .inner > div { min-width: 0; }
footer.site .col-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #fff; margin-bottom: 14px;
}
footer.site a { color: rgba(255,255,255,.85); display: block; padding: 3px 0; }
footer.site a:hover { color: #fff; }
footer.site .brand-block img { height: 50px; margin-bottom: 16px; }
footer.site .legal {
  max-width: var(--max-w); margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12px; opacity: .55; text-align: center;
}
@media (max-width: 720px) {
  footer.site .inner { grid-template-columns: 1fr; gap: 24px; }
}
