/* ============================================================
   Lewis Excavation — main.css
   Palette:  Umber #26201A · Bone #F3F1EB · Gold #EFBF04
             Bright Gold #FFD32B · Gravel #7A7264
   Type:     Big Shoulders Display (display) · Public Sans (body)
             IBM Plex Mono (grade labels, stats, captions)
   ============================================================ */

:root {
  --umber: #26201A;
  --umber-2: #322A21;
  --umber-3: #3E362B;
  --bone: #F3F1EB;
  --white: #FFFFFF;
  --gold: #EFBF04;
  --gold-bright: #FFD32B;
  --gravel: #7A7264;
  --ink: #26201A;
  --line: #DFDACC;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --wrap: 1180px;
  --radius: 4px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

h1.display { font-size: clamp(3rem, 7vw, 5.4rem); }
h2.display { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3.display { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }

.display .hit { color: var(--gold); }

.lead {
  font-size: 1.125rem;
  color: var(--gravel);
  max-width: 56ch;
}

.on-dark { color: var(--bone); }
.on-dark .lead, .on-dark p { color: rgba(243, 241, 235, 0.78); }

/* Grade-stake eyebrow: the corner bracket is a stake profile */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gravel);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 9px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  flex: none;
}

.eyebrow .depth { color: var(--gold); }

.section-dark .eyebrow { color: rgba(243, 241, 235, 0.6); }
.section-dark .eyebrow .depth { color: var(--gold-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--umber);
}

.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-ghost:hover { background: rgba(239, 191, 4, 0.12); }

.btn-dark {
  background: var(--umber);
  color: var(--bone);
}

.btn-dark:hover { background: var(--umber-3); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Transparent at the top of the page: the hero below is pulled up
     underneath it so its background runs behind the nav. */
  margin-bottom: calc(-1 * var(--header-h));
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(28, 23, 18, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(38, 32, 26, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  transition: min-height 0.25s ease;
}

.site-header.scrolled .header-inner { min-height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--bone);
  margin-right: auto;
}

.brand-mark { width: 46px; height: 46px; }

/* Full SVG lockup (icon + wordmark + tagline in one file) */
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: height 0.25s ease;
}

.site-header.scrolled .brand-logo { height: 42px; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: rgba(243, 241, 235, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover { color: var(--gold-bright); }

.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
}

/* Services dropdown */
.has-sub { position: relative; }

.has-sub > a .bi { font-size: 0.7rem; margin-left: 0.3rem; }

.sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--umber-2);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.4rem;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.sub li { display: block; }

.sub a { padding: 0.55rem 0.8rem; font-size: 0.9rem; }

.has-sub:hover .sub,
.has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-cta { padding: 0.7rem 1.2rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--bone);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--umber);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vh, 6.5rem);
}

.hero-copy .lead { color: rgba(243, 241, 235, 0.75); margin-top: 1.4rem; }

.hero h1 { color: var(--bone); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
}

.hero-proof li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 241, 235, 0.65);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof .bi { color: var(--gold); }

/* Photo frame with mono annotation — used across the site */
.ph {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--umber-2);
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.ph figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: linear-gradient(transparent, rgba(38, 32, 26, 0.92));
  padding: 2rem 1rem 0.7rem;
}

.hero-photo { aspect-ratio: 1 / 0.92; }

/* Grade line — tick strip marking finish grade between sections */
.gradeline {
  position: relative;
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 76px,
      rgba(239, 191, 4, 0.55) 76px 78px);
  border-top: 2px solid var(--gold);
}

.gradeline span {
  position: absolute;
  right: 24px;
  top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gravel);
  background: var(--bone);
  padding: 0.1rem 0.5rem;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vh, 6rem); }

.section-dark { background: var(--umber); color: var(--bone); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vh, 3rem); }

.section-head .lead { margin-top: 0.9rem; }

/* ---------- Stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--umber);
  padding: 1.8rem 1.5rem 1.5rem;
}

.stat b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--gold);
  display: block;
}

.stat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 235, 0.65);
  display: block;
  margin-top: 0.6rem;
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* string line: taut gold thread across the top, like a mason's line */
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 3px;
  background: var(--gold);
  transition: right 0.3s ease;
  z-index: 1;
}

.svc-card:hover::before { right: 0; }

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(38, 32, 26, 0.12);
}

.svc-card .ph { border: none; border-radius: 0; aspect-ratio: 16 / 9; }

.svc-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

.svc-body h3 { margin-bottom: 0.5rem; }

.svc-body p { color: var(--gravel); font-size: 0.95rem; flex: 1; }

.svc-more {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.svc-card:hover .svc-more { color: var(--umber); }

/* ---------- Bid sheet (scope of work) ---------- */

.bidsheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.bidsheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 2px solid var(--umber);
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
}

.bidsheet-head h3 { letter-spacing: 0.02em; }

.bidsheet-head span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gravel);
}

.bidsheet ol {
  list-style: none;
  columns: 2;
  column-gap: 3rem;
  counter-reset: scope;
}

.bidsheet li {
  counter-increment: scope;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--line);
  break-inside: avoid;
  font-size: 0.98rem;
}

.bidsheet li::before {
  content: counter(scope, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  flex: none;
}

.bidsheet li::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
  margin-inline: 0.2rem;
  min-width: 2rem;
}

.bidsheet li span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gravel);
  flex: none;
}

/* ---------- Why us tiles ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-tile {
  background: var(--umber-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}

.why-tile .bi {
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}

.why-tile h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.why-tile p { font-size: 0.93rem; color: rgba(243, 241, 235, 0.72); }

/* ---------- Testimonials ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem 1.5rem;
}

.quote blockquote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
}

.quote figcaption {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gravel);
}

.quote figcaption b { color: var(--umber); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--gold);
  color: var(--umber);
}

.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 5vh, 3.5rem);
}

.cta-band h2 { max-width: 18ch; }

.cta-band .sub-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  color: rgba(38, 32, 26, 0.75);
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.cta-band .btn-ghost { border-color: var(--umber); color: var(--umber); }

.cta-band .btn-ghost:hover { background: rgba(38, 32, 26, 0.08); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background:
    linear-gradient(rgba(38, 32, 26, 0.7), rgba(38, 32, 26, 0.78)),
    var(--umber) url("../img/dark-earth-tracks.jpg") center / cover no-repeat;
  color: var(--bone);
  padding-block: calc(var(--header-h) + clamp(2.8rem, 6vh, 4.5rem)) clamp(2.8rem, 6vh, 4.5rem);
}

.page-hero .lead { color: rgba(243, 241, 235, 0.75); margin-top: 1rem; max-width: 62ch; }

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 235, 0.5);
  margin-top: 1.6rem;
}

.crumbs a { color: inherit; text-decoration: none; }

.crumbs a:hover { color: var(--gold-bright); }

/* ---------- Split feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature + .feature { margin-top: clamp(3rem, 7vh, 5rem); }

.feature.flip .feature-media { order: 2; }

.feature .ph { aspect-ratio: 4 / 3; border-color: var(--line); }

.feature h2, .feature h3 { margin-bottom: 0.8rem; }

.feature p + p { margin-top: 0.9rem; }

.feature p { color: var(--gravel); }

.feature .link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  font-weight: 700;
  color: var(--umber);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1rem;
}

.feature .link-more:hover { color: var(--gold); }

/* ---------- Article layout (service detail) ---------- */

.article-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2.4rem 0 0.8rem;
}

.article > h2:first-child { margin-top: 0; }

.article p { color: #4A4436; }

.article p + p { margin-top: 0.9rem; }

.article .ph { aspect-ratio: 21 / 9; margin: 1.6rem 0; border-color: var(--line); }

.article ul.checks { list-style: none; margin: 1rem 0; }

.article ul.checks li {
  display: flex;
  gap: 0.7rem;
  padding: 0.45rem 0;
  align-items: baseline;
}

.article ul.checks .bi { color: var(--gold); flex: none; }

/* numbered process — a real sequence (evaluate → permit → install → inspect) */
.steps { list-style: none; margin: 1.4rem 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3.4rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--umber);
  background: var(--white);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.1rem - 1px);
  top: 2.5rem;
  bottom: 0.3rem;
  border-left: 2px dashed var(--line);
}

.steps h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }

.steps p { font-size: 0.95rem; }

/* document links (county applications etc.) */
.doc-list { list-style: none; margin: 1.2rem 0; }

.doc-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.doc-list a:hover { border-color: var(--gold); transform: translateX(4px); }

.doc-list .bi { color: var(--gold); font-size: 1.2rem; flex: none; }

.doc-list small {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gravel);
}

/* facts strip inside articles */
.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.6rem 0;
}

.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.fact b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  display: block;
  line-height: 1;
}

.fact span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gravel);
  display: block;
  margin-top: 0.45rem;
}

/* ---------- Sidebar ---------- */

.aside-card {
  background: var(--umber);
  color: var(--bone);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  position: sticky;
  top: 100px;
}

.aside-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.aside-card p { color: rgba(243, 241, 235, 0.72); font-size: 0.93rem; }

.aside-card .btn { width: 100%; justify-content: center; margin-top: 1.3rem; }

.aside-contact { list-style: none; margin-top: 1.4rem; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; }

.aside-contact li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.35rem 0;
  font-size: 0.92rem;
}

.aside-contact .bi { color: var(--gold); flex: none; }

.aside-contact a { color: var(--bone); text-decoration: none; }

.aside-contact a:hover { color: var(--gold-bright); }

.aside-nav { list-style: none; margin-top: 1.4rem; border-top: 1px solid var(--line-dark); padding-top: 0.6rem; }

.aside-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  color: rgba(243, 241, 235, 0.8);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}

.aside-nav a:hover, .aside-nav a[aria-current="page"] { color: var(--gold-bright); }

.aside-nav .bi { font-size: 0.7rem; color: var(--gold); }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card .ph { border: none; border-radius: 0; aspect-ratio: 1 / 1.05; }

.team-meta { padding: 1.1rem 1.2rem 1.2rem; }

.team-meta h3 { font-size: 1.05rem; line-height: 1.3; }

.team-meta span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: 0.3rem;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-panel {
  background: var(--umber);
  color: var(--bone);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.contact-list { list-style: none; }

.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-list li:last-child { border-bottom: none; }

.contact-list .bi { color: var(--gold); font-size: 1.15rem; flex: none; margin-top: 0.15rem; }

.contact-list b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 241, 235, 0.55);
  margin-bottom: 0.2rem;
}

.contact-list a { color: var(--bone); text-decoration: none; font-weight: 600; }

.contact-list a:hover { color: var(--gold-bright); }

.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.hours td { padding: 0.3rem 0; }

.hours td:first-child { padding-right: 1.5rem; }

.hours td:last-child { text-align: right; font-family: var(--font-mono); font-size: 0.8rem; color: rgba(243, 241, 235, 0.75); }

/* form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gravel);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(239, 191, 4, 0.25);
}

.form-note {
  font-size: 0.85rem;
  color: var(--gravel);
  margin-top: 0.9rem;
}

.field .invalid,
.field .invalid:focus {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.9rem;
}

.form-status.ok { color: #2E7D32; }

.form-status.err { color: #C0392B; }

/* Honeypot — visually gone, still in the form for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--umber);
  color: var(--bone);
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.8rem, 6vh, 4rem);
}

.footer-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--bone); margin-bottom: 1rem; }

.footer-brand img { height: 44px; width: auto; }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.site-footer p { color: rgba(243, 241, 235, 0.65); font-size: 0.92rem; }

.footer-links { list-style: none; }

.footer-links a {
  display: inline-block;
  color: rgba(243, 241, 235, 0.75);
  text-decoration: none;
  padding: 0.28rem 0;
  font-size: 0.94rem;
}

.footer-links a:hover { color: var(--gold-bright); }

.footer-contact { list-style: none; }

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.28rem 0;
  font-size: 0.94rem;
  color: rgba(243, 241, 235, 0.75);
}

.footer-contact .bi { color: var(--gold); flex: none; }

.footer-contact a { color: inherit; text-decoration: none; }

.footer-contact a:hover { color: var(--gold-bright); }

.footer-hours td { padding: 0.2rem 0; font-size: 0.9rem; color: rgba(243, 241, 235, 0.75); }

.footer-hours td:last-child { padding-left: 1rem; font-family: var(--font-mono); font-size: 0.78rem; }

/* bedrock line — bottom of the dig */
.footer-bottom { border-top: 1px solid var(--line-dark); }

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 235, 0.45);
}

.footer-bottom .depth { color: var(--gold); }

/* ---------- Reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in { opacity: 1; transform: none; }

/* hero load sequence */
.hero-copy > * {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.7s ease forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.45s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.6s; }

.hero-photo {
  opacity: 0;
  animation: rise 0.8s ease 0.35s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-photo { animation: none; opacity: 1; transform: none; }
  .svc-card, .svc-card::before, .doc-list a { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .header-cta { display: none; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--umber-2);
    border-bottom: 1px solid var(--line-dark);
    display: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.8rem 24px 1.4rem; }

  .site-nav a { padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }

  .site-nav a[aria-current="page"] { box-shadow: none; border-left: 3px solid var(--gold); padding-left: 0.8rem; }

  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1.2rem;
    min-width: 0;
  }

  .sub a { font-size: 0.88rem; color: rgba(243, 241, 235, 0.65); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }

  .hero-photo { aspect-ratio: 16 / 10; }

  .stats { grid-template-columns: 1fr 1fr; }

  .card-grid, .why-grid { grid-template-columns: 1fr; }

  .quote-grid { grid-template-columns: 1fr; }

  .feature { grid-template-columns: 1fr; }

  .feature.flip .feature-media { order: 0; }

  .article-grid { grid-template-columns: 1fr; }

  .aside-card { position: static; }

  .bidsheet ol { columns: 1; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .fact-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-logo { height: 38px; }

  .site-header.scrolled .brand-logo { height: 36px; }

  .form-row { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; }

  .brand-tag { display: none; }
}
