/* ============================================================
   PEERS ENGINEERING, LLC — Site Stylesheet
   Brand: #1E6B35 (PEERS Green) · Arial · Logo: peers-logo.png
   Design concept: the construction document set
   ============================================================ */

:root {
  --green: #1E6B35;
  --green-deep: #123A1F;
  --green-tint: #EFF5F0;
  --ink: #1C221E;
  --muted: #55605A;
  --line: #D9E3DC;
  --line-strong: #B9CBBE;
  --paper: #FFFFFF;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

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

/* ---------- Header ---------- */
.site-header {
  border-bottom: 2px solid var(--green);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 126px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 112px; width: auto; }
.brand-name { font-weight: 900; font-size: 19px; letter-spacing: 0.02em; color: var(--green-deep); line-height: 1.1; }
.brand-name span { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

.site-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 700;
  padding: 10px 14px; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.nav-cta {
  background: var(--green); color: #fff !important; border-radius: 3px;
  border-bottom: none !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--green-deep); color: #fff; }

/* ---------- Eyebrow / section labels (title-block field style) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--green);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 900; line-height: 1.08;
  letter-spacing: -0.015em; color: var(--green-deep); max-width: 20ch;
}
.hero .lede {
  margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 62ch;
}
.hero-badges { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--green); color: var(--green-deep);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 3px; background: var(--green-tint);
}
.badge.solid { background: var(--green); color: #fff; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 3px; border: 2px solid var(--green);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-ghost { color: var(--green-deep); background: #fff; }
.btn-ghost:hover { background: var(--green-tint); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.tint { background: var(--green-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -0.01em; color: var(--green-deep); max-width: 26ch; }
.section .sub { margin-top: 12px; color: var(--muted); max-width: 68ch; }

/* ---------- Sheet-index service list ---------- */
.sheet-index { margin-top: 36px; border-top: 2px solid var(--green-deep); }
.sheet-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line-strong);
  align-items: start;
}
.sheet-code {
  font-weight: 900; font-size: 30px; color: var(--green); line-height: 1;
  letter-spacing: -0.01em;
}
.sheet-code small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.sheet-body h3 { font-size: 20px; font-weight: 900; color: var(--green-deep); }
.sheet-body p { margin-top: 6px; color: var(--muted); max-width: 70ch; }
.deliverables { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.deliverables li {
  font-size: 13px; font-weight: 700; color: var(--green-deep);
  background: #fff; border: 1px solid var(--line-strong);
  padding: 5px 11px; border-radius: 3px;
}
.tint .deliverables li { background: #fff; }
.partner-note { margin-top: 10px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- Cards ---------- */
.card-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line-strong); border-top: 4px solid var(--green);
  border-radius: 3px; padding: 24px;
}
.card h3 { font-size: 17px; font-weight: 900; color: var(--green-deep); }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Photo placeholders ---------- */
.photo-band { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
figure.photo {
  border: 2px dashed var(--line-strong); border-radius: 3px;
  background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--green-tint) 12px, var(--green-tint) 24px);
  min-height: 210px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}
figure.photo figcaption { font-size: 13px; font-weight: 700; color: var(--muted); max-width: 26ch; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Process ---------- */
.process { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; }
.step h3 { font-size: 16px; font-weight: 900; color: var(--green-deep); }
.step h3::before {
  counter-increment: step; content: "STEP " counter(step, decimal-leading-zero);
  display: block; font-size: 11px; letter-spacing: 0.16em; color: var(--green); margin-bottom: 4px;
}
.step p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- MBE band ---------- */
.mbe {
  border: 2px solid var(--green); border-radius: 3px; background: #fff;
  padding: 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  margin-top: 36px;
}
.mbe-seal {
  width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; color: var(--green); background: var(--green-tint);
}
.mbe h3 { font-size: 20px; font-weight: 900; color: var(--green-deep); }
.mbe p { margin-top: 6px; color: var(--muted); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.contact-card {
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 28px; background: #fff;
}
.contact-card .label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-card a.big {
  display: block; margin-top: 8px; font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 900; color: var(--green-deep); text-decoration: none; word-break: break-word;
}
.contact-card a.big:hover { color: var(--green); }
.contact-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Title-block footer (signature element) ---------- */
.titleblock {
  margin-top: 72px; border-top: 3px solid var(--green-deep);
  background: var(--green-deep); color: #E7F0E9;
}
.tb-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  border-left: 1px solid rgba(255,255,255,0.25);
}
.tb-cell {
  border-right: 1px solid rgba(255,255,255,0.25);
  padding: 18px 20px; min-height: 96px;
}
.tb-cell .tb-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #A9C6B2; font-weight: 700;
}
.tb-cell .tb-value { margin-top: 6px; font-size: 14px; font-weight: 700; color: #fff; }
.tb-cell .tb-value a { color: #fff; text-decoration: none; }
.tb-cell .tb-value a:hover { text-decoration: underline; }
.tb-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 14px 20px; font-size: 12px; color: #A9C6B2;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .site-nav a { padding: 8px 10px; }
  .sheet-row { grid-template-columns: 1fr; gap: 10px; }
  .mbe { grid-template-columns: 1fr; text-align: left; }
  .tb-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 40px; }
}

/* ---------- Hero split with MBE mark ---------- */
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-mbe { display: flex; justify-content: center; }
.hero-mbe img { max-width: 306px; width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-mbe img { max-width: 217px; }
}

/* ---------- Illustration figures (replacing photo placeholders) ---------- */
figure.illus {
  border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden;
  background: var(--green-tint); margin: 0;
}
figure.illus svg { width: 100%; height: 220px; display: block; }
figure.illus figcaption {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px; background: #fff; border-top: 1px solid var(--line);
}

/* ---------- Real photography ---------- */
figure.photo-real {
  border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; margin: 0; background: #fff;
}
figure.photo-real img { width: 100%; height: 220px; object-fit: cover; display: block; }
figure.photo-real figcaption {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px; border-top: 1px solid var(--line);
}

/* ---------- PEERS values strip ---------- */
.values-grid {
  margin-top: 36px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.value {
  border: 1px solid var(--line-strong); border-top: 4px solid var(--green);
  border-radius: 3px; background: #fff; padding: 22px 20px; text-align: left;
}
.value .value-letter {
  font-size: 44px; font-weight: 900; color: var(--green); line-height: 1;
}
.value h3 { margin-top: 8px; font-size: 16px; font-weight: 900; color: var(--green-deep); letter-spacing: 0.02em; }
.value p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Photo hero (Fahey-style) ---------- */
.hero-photo {
  background:
    linear-gradient(rgba(15, 46, 25, 0.85), rgba(15, 46, 25, 0.85)),
    url('assets/photo-interior.jpg') center / cover no-repeat;
  padding: 110px 0 96px;
  color: #fff;
}
.hero-photo .eyebrow { color: #A9C6B2; }
.hero-photo .eyebrow::before { background: #A9C6B2; }
.hero-photo h1 {
  font-size: clamp(38px, 5.6vw, 62px); font-weight: 900; line-height: 1.06;
  letter-spacing: -0.015em; color: #fff; max-width: 22ch;
}
.hero-photo .lede { margin-top: 22px; font-size: 19px; color: #DCE8DF; max-width: 64ch; }
.hero-photo .badge { border-color: #fff; color: #fff; background: transparent; }
.hero-photo .badge.solid { background: #fff; color: var(--green-deep); }
.hero-photo .btn-primary { background: #fff; color: var(--green-deep); border-color: #fff; }
.hero-photo .btn-primary:hover { background: var(--green-tint); border-color: var(--green-tint); }
.hero-photo .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 760px) { .hero-photo { padding: 72px 0 64px; } }

/* MBE seal image in certification band */
.mbe img.mbe-seal-img { width: 110px; height: auto; }
