/* ==========================================================================
   JSB Grading LLC — minimalist industrial
   Palette from the original jsbgrading.com: deep green, equipment yellow,
   concrete off-white. Ruled lines, sharp corners, spec-sheet typography.
   ========================================================================== */

:root {
  --green-950: #0d2014;
  --green-900: #15321f;
  --green-800: #1d452a;
  --green-100: #dde8da;
  --yellow: #f3b80f;
  --yellow-dim: #d9a30a;
  --gold-deep: #8a6e08;
  --paper: #f5f3eb;
  --paper-tint: #ebe8dc;
  --ink: #171b14;
  --ink-soft: #555b50;
  --line: #d4d0c0;
  --line-dark: rgba(255, 255, 255, 0.16);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(3.2rem, 8vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.35rem; }

h1 em {
  font-style: normal;
  background: var(--yellow);
  color: var(--ink);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-800);
  margin-bottom: 1.1rem;
}

.eyebrow::before { content: "// "; color: var(--gold-deep); }

.eyebrow-light { color: var(--yellow); }

.eyebrow-light::before { color: var(--yellow); }

.section-sub {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 58ch;
  margin-top: 1.1rem;
}

.section-dark .section-sub { color: #b9c2b4; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; }

.btn-solid { background: var(--yellow); color: var(--ink); }

.btn-solid:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

.btn-outline { background: transparent; color: var(--ink); }

.btn-outline:hover { background: var(--ink); color: var(--paper); }

.section-dark .btn-outline,
.cta-band .btn-outline,
.page-hero .btn-outline {
  color: #fff;
  border-color: #fff;
}

.section-dark .btn-outline:hover,
.cta-band .btn-outline:hover,
.page-hero .btn-outline:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.section-dark .btn-solid,
.cta-band .btn-solid {
  border-color: var(--yellow);
}

.section-dark .btn-solid:hover,
.cta-band .btn-solid:hover {
  background: transparent;
  color: var(--yellow);
}

.btn-lg { padding: 1rem 1.8rem; font-size: 0.9rem; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--green-950);
  color: var(--green-100);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.topbar a { color: var(--yellow); text-decoration: none; }

.topbar a:hover { text-decoration: underline; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 78px;
}

.brand { display: flex; align-items: center; text-decoration: none; }

.brand img { height: 54px; width: auto; }

.site-nav {
  display: flex;
  gap: 1.7rem;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--font-mono);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.site-nav a:hover { border-bottom-color: var(--ink); }

.site-nav a.active { border-bottom-color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero { background: var(--paper); }

.hero-inner { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }

.hero h1 { color: var(--green-950); max-width: 14ch; }

.hero-sub {
  max-width: 54ch;
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stats > div { padding: 1.4rem 1.5rem 1.4rem 0; }

.hero-stats > div + div {
  border-left: 1px solid var(--ink);
  padding-left: 1.5rem;
}

.hero-stats dt {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1;
}

.hero-stats dd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

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

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-head { max-width: 72ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.section-dark {
  background: var(--green-950);
  color: #fff;
}

.section-tint {
  background: var(--paper-tint);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ---------- Service index (numbered ledger) ---------- */

.service-index {
  list-style: none;
  border-top: 1px solid var(--ink);
}

.service-index li { border-bottom: 1px solid var(--ink); }

.svc-row {
  display: grid;
  grid-template-columns: 3.5rem 1.1fr 1.6fr 3rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.3rem 1rem;
  text-decoration: none;
  color: inherit;
}

.svc-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-deep);
}

.svc-name {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
}

.svc-desc { font-size: 0.97rem; color: var(--ink-soft); }

.svc-arrow {
  font-size: 1.2rem;
  justify-self: end;
  color: var(--gold-deep);
}

a.svc-row { transition: background 0.13s ease, color 0.13s ease; }

a.svc-row:hover { background: var(--green-950); color: #fff; }

a.svc-row:hover .svc-desc { color: var(--green-100); }

a.svc-row:hover .svc-num,
a.svc-row:hover .svc-arrow { color: var(--yellow); }

.services-note {
  margin-top: 2rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.services-note a { color: var(--green-800); font-weight: 600; }

/* ---------- Bordered card grid (about page, etc.) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
  border-width: 1px 0 0 1px;
}

.service-card {
  background: transparent;
  border: 1px solid var(--ink);
  border-width: 0 1px 1px 0;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

a.service-card:hover { background: var(--green-950); color: #fff; }

a.service-card:hover p { color: var(--green-100); }

a.service-card:hover .card-more { color: var(--yellow); }

.service-card h3 { margin-bottom: 0.5rem; }

.service-card p { color: var(--ink-soft); font-size: 0.97rem; }

.card-more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-deep);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-copy p { color: #c2cabc; margin-top: 1.15rem; }

.about-copy h2 { color: #fff; }

.about-verse {
  margin-top: 2rem;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #d5dccf;
}

.about-verse cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--yellow);
}

.about-verse-light {
  background: var(--paper-tint);
  border-left-color: var(--gold-deep);
  color: var(--ink-soft);
}

.about-verse-light cite { color: var(--gold-deep); }

.about-points {
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.about-points li {
  border-bottom: 1px solid var(--line-dark);
  padding: 1.3rem 0;
}

.about-points h3 { color: var(--yellow); margin-bottom: 0.3rem; }

.about-points p { color: #b9c2b4; font-size: 0.96rem; }

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

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.testimonial {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.testimonial blockquote {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.18;
  text-transform: uppercase;
  flex: 1;
}

.testimonial figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.testimonial figcaption::before { content: "— "; }

.testimonial-video {
  margin-top: 3rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

.video-frame {
  position: relative;
  margin-top: 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Service area ---------- */

.area-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.area-list li {
  border: 1px solid var(--ink);
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.area-note { margin-top: 1.5rem; color: var(--ink-soft); font-size: 0.97rem; }

.area-card {
  background: var(--green-950);
  color: #fff;
  padding: 2rem 1.85rem;
}

.area-card h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.area-card h3::before { content: "// "; }

.area-card p { color: #c2cabc; font-size: 0.97rem; margin-bottom: 1.25rem; }

.area-card p a { color: #fff; font-weight: 600; }

.area-card hr {
  border: 0;
  border-top: 1px solid var(--line-dark);
  margin: 1.5rem 0;
}

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

.hours-table td { padding: 0.35rem 0; color: #d5dccf; }

.hours-table td:last-child { text-align: right; font-weight: 600; color: #fff; }

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

.page-hero {
  background: var(--green-950);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}

.page-hero-inner { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }

.page-hero .section-sub { color: #c2cabc; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8d988a;
  margin-bottom: 1.2rem;
}

.breadcrumb a { color: var(--yellow); text-decoration: none; }

.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Service detail pages ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.detail-body { counter-reset: dh; }

.detail-body > h2 {
  font-size: 1.9rem;
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
  counter-increment: dh;
}

.detail-body > h2::before {
  content: "0" counter(dh) " / ";
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 0;
}

.detail-body > h2:first-of-type { margin-top: 2.6rem; }

.detail-body p { margin-top: 1rem; color: var(--ink-soft); }

.detail-body p.lede {
  font-size: 1.2rem;
  color: var(--ink);
}

.check-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
}

.check-list li strong { color: var(--ink); }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.detail-aside { position: sticky; top: 110px; }

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

.aside-phone {
  display: block;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}

.related-links {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.related-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
  text-decoration: none;
}

.related-links a:hover { text-decoration: underline; }

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

.cta-band {
  position: relative;
  background: var(--green-950);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--green-950) 14px 28px);
}

.cta-band .section-sub { color: #b9c2b4; }

.cta-band .hero-actions { margin-top: 2rem; }

/* ---------- Contact (home section) ---------- */

.contact-actions { margin-top: 2rem; }

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-dark);
  border-width: 1px 0 0 1px;
  margin-top: 3rem;
}

.contact-method {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line-dark);
  border-width: 0 1px 1px 0;
  padding: 1.5rem;
  text-decoration: none;
  transition: background 0.13s ease;
}

.contact-method:hover { background: rgba(255, 255, 255, 0.06); }

.contact-method svg {
  width: 24px;
  height: 24px;
  fill: var(--yellow);
  margin-bottom: 0.8rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8d988a;
}

.contact-value { font-weight: 600; color: #fff; overflow-wrap: anywhere; }

.contact-mail {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8d988a;
}

/* ---------- Lead form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.lead-form {
  border: 1px solid var(--ink);
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.15rem;
}

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

.field { display: grid; gap: 0.4rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field label span { color: var(--gold-deep); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
}

.lead-form .btn { justify-content: center; padding: 1rem 1.7rem; font-size: 0.9rem; }

.form-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
}

.form-note a { color: var(--green-800); font-weight: 600; }

.honeypot { position: absolute; left: -9999px; }

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

.site-footer {
  position: relative;
  background: var(--green-950);
  color: #8d988a;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.8rem 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--green-950) 14px 28px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.footer-nav { display: flex; gap: 1.3rem; }

.footer-nav a {
  color: #8d988a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: var(--yellow); }

.footer-tagline { color: var(--yellow); }

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

@media (max-width: 880px) {
  .about-grid, .area-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div { padding: 1.2rem 1rem 1.2rem 0; }
  .hero-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .form-row { grid-template-columns: 1fr; }
  .detail-aside { position: static; }

  .svc-row {
    grid-template-columns: 2.5rem 1fr 2rem;
    row-gap: 0.3rem;
    padding: 1.1rem 0.5rem;
  }

  .svc-desc { grid-column: 2 / 3; }
}

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

  .topbar-inner { justify-content: center; }

  .topbar-inner p:first-child { display: none; }

  .nav-toggle { display: flex; }

  .brand img { height: 46px; }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    display: none;
  }

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

  .site-nav a {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .site-nav a.active { color: var(--gold-deep); }

  .footer-inner { flex-direction: column; text-align: center; }
}
