/* Bozz's Excavating: road-sign look taken from the logo. Black and safety lime, topo contour texture.
   --lime is the exact logo green; --green is a darker shade that stays readable as text on light backgrounds. */
:root {
  --lime: #55ff06;
  --lime-dark: #46d900;
  --green: #2a6d06;
  --green-dark: #1d4d04;
  --green-tint: #ecf8e2;
  --soil: #2a6d06;
  --ink: #0c0e0b;
  --night: #121510;
  --muted: #4a5446;
  --paper: #f5f7f2;
  --card: #ffffff;
  --line: #d5ddd0;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--lime); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink);
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

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

h1, h2, h3 { font-family: var(--display); font-stretch: 118%; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0; }
.eyebrow, .label, .grade-title {
  font-family: var(--display); font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--soil);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-dark); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green-tint); }
.hero .btn-ghost, .page-head .btn-ghost { border-color: var(--lime); color: var(--lime); }
.hero .btn-ghost:hover, .page-head .btn-ghost:hover { background: rgba(85,255,6,.12); }
.btn-light { background: var(--lime); color: var(--ink); }
.btn-light:hover { background: var(--lime-dark); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* Header */
.site-header { background: var(--ink); border-bottom: 4px solid var(--lime); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 64px; height: 64px; display: block; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: var(--radius); }
.brand-mark svg { width: 32px; height: 32px; }
.brand-text { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.brand-text strong { font-weight: 900; color: var(--lime); }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--radius); }
.site-nav a:not(.btn):hover { background: #222820; }
.site-nav a[aria-current="page"] { color: var(--lime); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.btn-call { background: var(--lime); color: var(--ink); margin-left: 8px; padding: 12px 16px; }
.btn-call:hover { background: var(--lime-dark); }

.menu-btn { display: none; align-items: center; gap: 8px; background: transparent; border: 2px solid #3a4236; border-radius: var(--radius); padding: 10px 12px; font: 700 .95rem var(--body); color: #fff; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }

@media (max-width: 900px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-block: 8px 4px; border-top: 1px solid #2a3027; }
  .js .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 8px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lime); padding-left: 14px; }
  .btn-call { margin: 8px 0 0; }
}

/* Topo contour texture */
.hero, .page-head {
  background-color: var(--ink);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='260' viewBox='0 0 400 260'%3E%3Cg fill='none' stroke='%2355ff06' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M-20 60c60-30 110 20 170 0s90-50 150-30 80 40 120 30'/%3E%3Cpath d='M-20 95c60-25 110 25 170 5s95-45 150-25 80 40 120 30'/%3E%3Cpath d='M-20 130c55-20 115 30 175 10s90-40 145-20 85 35 120 25'/%3E%3Cpath d='M-20 165c55-15 115 35 175 15s90-35 145-15 85 30 120 20'/%3E%3Cpath d='M-20 200c55-10 115 40 175 20s90-30 145-10 85 25 120 15'/%3E%3Cellipse cx='300' cy='40' rx='34' ry='14'/%3E%3Cellipse cx='300' cy='40' rx='16' ry='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 260px;
}
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

/* Job card: styled like a field work order */
.grade-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; box-shadow: 6px 6px 0 var(--lime); }
.grade-card dl { margin: 12px 0 0; display: grid; }
.grade-card dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-block: 10px; border-top: 1px dashed var(--line); }
.grade-card dt { font-weight: 700; }
.grade-card dd { margin: 0; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.grade-foot { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--ink); font-weight: 700; font-size: .9rem; }

.page-head { padding-block: clamp(36px, 6vw, 72px); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head.center .wrap { justify-items: center; text-align: center; }
.page-head.center .lede { margin-inline: auto; }

/* Bands */
.band { padding-block: clamp(44px, 7vw, 80px); }
.band > .wrap { display: grid; gap: 28px; }
.band-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--lime); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; scroll-margin-top: 16px; }
.svc p { color: var(--muted); }
.svc:target { border-top-color: var(--ink); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.ticks.big { gap: 14px; font-size: 1.1rem; font-weight: 600; align-content: center; }

.split { grid-template-columns: 1.3fr 1fr; align-items: center; }
.split > div { display: grid; gap: 16px; justify-items: start; min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 65ch; }
.draft-note { background: #fff6d6; border: 1px dashed var(--green); padding: 10px 12px; border-radius: var(--radius); font-size: .95rem; }

.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .who-grid { grid-template-columns: 1fr; } }
.who { border-left: 5px solid var(--lime); padding: 4px 0 4px 16px; display: grid; gap: 6px; }
.who p { color: var(--muted); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 4px solid var(--lime); }
.steps li::before { content: "Step " counter(s); font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soil); }
.steps p { color: var(--muted); }

/* CTA band */
.band-cta { background: var(--ink); color: #fff; border-top: 4px solid var(--lime); }
.band-cta h2 { color: var(--lime); }
.band-cta p { color: #cdd6c9; }
.cta-row { display: flex !important; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-row > div:first-child { display: grid; gap: 8px; min-width: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact */
.contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 700; }
.req { color: #a3341c; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 11px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); border-top: 4px solid var(--lime); color: #cfd7d1; padding-top: 44px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-grid > div { display: grid; gap: 6px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.footer-grid .label { color: var(--lime); margin-top: 6px; }
.footer-name { font-family: var(--display); font-weight: 900; font-stretch: 118%; color: #fff; font-size: 1.2rem; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-base { border-top: 1px solid #334036; margin-top: 32px; padding-block: 16px 24px; font-size: .9rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* As featured in: press strip */
.press { background: var(--night); color: #fff; border-block: 4px solid var(--lime); }
.press-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-block: 26px; }
.press-label { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.7rem); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.press-label::before { content: "\2605  "; color: var(--lime); }
.press-items { display: flex; flex-wrap: wrap; gap: 14px; }
.press-item { display: grid; gap: 4px; min-width: 0; padding: 14px 22px; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--radius); box-shadow: 5px 5px 0 var(--lime); transition: transform .15s, box-shadow .15s; }
.press-item:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--lime); }
.press-name { font-size: 1.6rem; line-height: 1.05; }
.press-ot { font-family: "Libre Caslon Text", Georgia, "Times New Roman", serif; font-weight: 700; }
.press-mh { font-family: var(--display); font-stretch: 112%; font-weight: 900; letter-spacing: -.01em; color: var(--green); }
.press-mh b { color: var(--ink); font-weight: 900; }
.press-note { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .press-items { width: 100%; } .press-item { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .press-item:hover { transform: none; } }

/* Dark hero and page headers */
.hero .lede, .page-head .lede { color: #cdd6c9; }
.hero .eyebrow, .page-head .eyebrow { color: var(--lime); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-sign { display: grid; place-items: center; min-width: 0; }
.hero-sign img { width: min(100%, 400px); height: auto; filter: drop-shadow(0 18px 40px rgba(85,255,6,.22)); }
@media (max-width: 820px) { .hero-sign img { width: min(70%, 300px); } .hero-sign { order: -1; } }

/* Clickable service cards */
a.svc { color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.svc:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(12,14,11,.12); border-color: var(--ink); border-top-color: var(--lime); }
a.svc h3 { color: var(--ink); }
.svc-more { margin-top: 6px; font-weight: 700; color: var(--green); }
a.svc:hover .svc-more { text-decoration: underline; }

/* Service pages */
.page-head .eyebrow a { color: var(--lime); text-decoration: none; }
.page-head .eyebrow a:hover { text-decoration: underline; }
.card-copy { color: var(--muted); margin-block: 10px 16px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(12,14,11,.85)); color: #fff; font-weight: 600; font-size: .92rem; }
.gallery figure.feature figcaption { font-size: 1.05rem; border-bottom: 5px solid var(--lime); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery-empty { display: grid; gap: 6px; justify-items: start; padding: 32px 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper); color: var(--muted); }
.other-links { display: flex; flex-wrap: wrap; gap: 10px; }
.other-links a { padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 700; }
.other-links a:hover { background: var(--lime); }
@media (prefers-reduced-motion: reduce) { a.svc:hover { transform: none; } }


/* Let a lone last service card fill its row instead of sitting alone */
.svc-grid > .svc:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .svc-grid > .svc:last-child:nth-child(3n+1) { grid-column: auto; }
  .svc-grid > .svc:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .svc-grid > .svc:last-child { grid-column: auto; } }

/* Five photos: lead photo takes a 2x2 block so the grid stays even */
@media (min-width: 901px) {
  .gallery:has(> figure:nth-child(5):last-child) > figure.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (max-width: 900px) and (min-width: 481px) {
  .gallery:has(> figure:nth-child(5):last-child) > figure.feature { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* A gallery with only one or two photos shows them larger instead of as small tiles */
.gallery:has(> figure:only-child) { grid-template-columns: minmax(0, 560px); }
.gallery:has(> figure:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 420px)); }

/* Concrete page: photos grouped by project */
.projects { display: grid; gap: 40px; }
.project { display: grid; gap: 14px; }
.project-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.project-title::before { content: ""; width: 14px; height: 14px; background: var(--lime); border: 2px solid var(--ink); transform: rotate(45deg); flex: none; }

/* Six items: two even rows of three */
@media (min-width: 901px) { .gallery:has(> figure:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Seven items: lead spans two columns so both rows fill */
@media (min-width: 901px) { .gallery:has(> figure:nth-child(7):last-child) > figure.feature { grid-column: span 2; aspect-ratio: auto; } }

/* Seven items: lead photo is a big block (2 columns x 3 rows), the other six fill beside it */
@media (min-width: 901px) {
  .gallery:has(> figure:nth-child(7):last-child) > figure.feature { grid-column: span 2; grid-row: span 3; aspect-ratio: auto; }
}
@media (max-width: 900px) and (min-width: 481px) {
  .gallery:has(> figure:nth-child(7):last-child) > figure.feature { grid-column: span 2; aspect-ratio: 3 / 4; }
}

/* Customer reviews: rotating carousel */
.review-band { background: var(--lime); }
.review-band h2 { color: var(--ink); }
.rv-head { display: grid; gap: 6px; min-width: 0; }
.rv-score { font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rv-big { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: 1.6rem; }
.rv-stars { color: var(--ink); letter-spacing: .12em; }
.rv-controls { display: flex; gap: 8px; }
.rv-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--ink); color: var(--lime); font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.rv-btn:hover { background: #fff; color: var(--ink); }
.rv-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.js .rv-viewport { overflow: hidden; }
.rv-track { --per: 3; list-style: none; margin: 0; padding: 0; display: flex; column-gap: 16px; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 960px) { .rv-track { --per: 2; } }
@media (max-width: 620px) { .rv-track { --per: 1; } }
.rv-card { flex: 0 0 calc((100% - (var(--per) - 1) * 16px) / var(--per)); min-width: 0; scroll-snap-align: start; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rv-card .rv-stars { color: var(--lime); font-size: 1.1rem; }
.rv-card blockquote { margin: 0; flex: 1; }
.rv-card blockquote p { color: #fff; font-size: 1.02rem; line-height: 1.55; }
.rv-who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: #fff; }
.rv-who strong { color: var(--lime); }
.rv-src { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #2a3027; color: #dfe6da; }
.rv-dots { display: none; }
.js .rv-dots { display: flex; justify-content: center; gap: 8px; }
.rv-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(12,14,11,.25); transition: background .3s, width .3s; }
.rv-dots span.on { background: var(--ink); width: 26px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .rv-track { transition: none; } }

/* Back button bar under the header on every page except Home */
.backbar { background: var(--ink); border-bottom: 1px solid #2a3027; }
.backbar .wrap { padding-block: 10px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none; font-size: .95rem; }
.back-btn:hover { background: #fff; }

/* Keep the Back bar pinned to the top of the screen while scrolling */
.backbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; box-shadow: 0 4px 12px rgba(12,14,11,.18); }
.backbar ~ main .svc { scroll-margin-top: 72px; }
