:root {
  --blue: #0e5ba8;
  --blue-dark: #0a4580;
  --navy: #0a1a2c;
  --navy-2: #10263f;
  --steel: #5b6b7c;
  --line: #dde3ea;
  --paper: #f4f6f8;
  --white: #ffffff;
  --spark: #f7b500;
  --ink: #15202c;
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .how :focus-visible, .area :focus-visible, footer :focus-visible, .callbar :focus-visible, dialog.lightbox :focus-visible { outline-color: var(--spark); }
.step button:focus-visible { outline-offset: -3px; outline-color: var(--spark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: .01em; text-decoration: none; padding: 14px 24px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-spark { background: var(--spark); color: var(--navy); }
.btn-spark:hover { background: #ffc61f; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-line:hover { background: rgba(14,91,168,.08); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.brand-name { font-family: var(--slab); font-weight: 700; font-size: 20px; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9fb6cf; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a.link { color: #d6e0ea; text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a.link:hover { color: var(--white); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.nav { flex: none; }
.nav a.link, .nav .btn { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.menu-btn { display: none; }
@media (max-width: 1279px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: none; color: var(--white); border: 2px solid rgba(255,255,255,.55); border-radius: 6px; font: 700 16px var(--sans); cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; }
  .nav { gap: 12px; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 24px rgba(5,12,22,.35); padding: 6px 24px 14px; max-height: calc(100vh - 152px); max-height: calc(100dvh - 152px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links.open { display: flex; }
  .nav-links a.link { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links a.link:last-child { border-bottom: 0; }
}
@media (max-width: 900px) { .nav .btn .num { display: none; } }
@media (max-width: 760px) { .nav .btn { display: none; } html { scroll-padding-bottom: 96px; } }
.brand-name { white-space: nowrap; }
@media (max-width: 480px) { .brand-name { font-size: 16px; } .brand img { width: 40px; height: 40px; } .site-header .wrap { padding: 0 16px; gap: 10px; } .menu-btn { padding: 0 10px; } }
@media (max-width: 350px) { .brand-name { font-size: 14px; } .brand-name small { font-size: 9px; } .menu-btn svg { display: none; } }
@media (max-height: 480px) { .site-header { position: relative; } html { scroll-padding-top: 12px; } }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url("../images/hero-excavator-bucket-welds.jpg") center 38% / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,26,44,.96) 0%, rgba(10,26,44,.88) 42%, rgba(14,91,168,.45) 100%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 14px; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: var(--spark); }
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); }
.h1-main { display: block; max-width: 13ch; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--spark); }
.hero p.lede { font-size: clamp(18px, 2.2vw, 22px); color: #d6e0ea; max-width: 34em; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.facts { position: relative; background: var(--blue); color: var(--white); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 20px 24px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; border-left: 1px solid rgba(255,255,255,.18); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--spark); }
@media (max-width: 760px) { .facts ul { grid-template-columns: 1fr; } .facts li { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 14px 0; } .facts li:first-child { border-top: 0; } .hero .wrap { padding-top: 64px; padding-bottom: 72px; } }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); }
.section-head p { color: var(--steel); margin-top: 14px; }
.kicker { display: block; font-family: var(--sans); font-weight: 700; font-size: 14px; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.alt { background: var(--paper); }
@media (max-width: 760px) { section { padding: 64px 0; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 8px; padding: 28px 26px 30px; }
.service .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; margin-bottom: 18px; }
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 25px; }
.service p { color: var(--steel); margin-top: 10px; font-size: 17px; }
.service ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 16px; font-weight: 500; }
.service li { padding: 7px 0 7px 24px; border-top: 1px solid var(--line); position: relative; }
.service li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; background: var(--spark); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* Work */
.job { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { margin: 0; background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.step button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.step img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.step figcaption { padding: 18px 20px 22px; }
.step .n { font-family: var(--slab); font-weight: 700; font-size: 15px; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; }
.step h3 { font-size: 22px; margin-top: 4px; }
.step p { color: var(--steel); font-size: 16px; margin-top: 6px; }
.ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; margin-top: 72px; }
.ba-head { margin-bottom: 0; padding-right: 16px; }
.ba .step img { aspect-ratio: 7 / 10; }
.ba .step figcaption { padding: 14px 18px 18px; }
.ba .step h3 { font-size: 20px; }
.more-work { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--spark); border-radius: 8px; padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.more-work h3 { font-size: 26px; }
.more-work p { color: var(--steel); margin-top: 6px; font-size: 17px; max-width: 34em; }
.more-work p a { font-weight: 700; }
.more-work > div:first-child { flex: 1 1 320px; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .ba { grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; margin-top: 56px; } .ba-head { grid-column: 1 / -1; padding-right: 0; margin-bottom: 10px; } }
@media (max-width: 520px) { .ba .step h3 { font-size: 17px; } .ba .step figcaption { padding: 12px 12px 14px; } .more-work { padding: 22px 20px; } }
@media (max-width: 560px) { .cta-row, .cta-row .btn { width: 100%; } }
.career-head { margin-top: 72px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { margin: 0; }
.tile button { display: block; width: 100%; padding: 0; border: 0; background: var(--navy); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .2s ease; }
.tile button:hover img { transform: scale(1.03); }
.tile button:focus-visible { outline-offset: -3px; outline-color: var(--spark); }
.tile figcaption { font-size: 15px; font-weight: 600; line-height: 1.35; margin-top: 8px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } .career-head { margin-top: 56px; } }
.how { background: var(--navy); color: var(--white); }
.how .kicker { color: var(--spark); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--spark); padding-top: 20px; }
.steps li::before { content: "0" counter(step); font-family: var(--slab); font-weight: 700; font-size: 40px; line-height: 1; color: var(--spark); }
.steps h3 { font-size: 24px; margin-top: 10px; }
.steps p { color: #b9c7d6; margin-top: 8px; font-size: 17px; }
.steps a { color: var(--white); font-weight: 700; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 900px) { .job { grid-template-columns: 1fr; } .step img { aspect-ratio: 1 / 1; } }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.about-photo { position: relative; padding: 0 48px 64px 0; }
.about-photo img.truck { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.owner { position: absolute; right: 0; bottom: 0; width: 42%; margin: 0; background: var(--white); padding: 6px 6px 0; border-radius: 10px; box-shadow: 0 14px 32px rgba(10,26,44,.3); }
.owner img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.owner figcaption { padding: 8px 6px 10px; font-size: 14px; line-height: 1.3; color: var(--steel); }
.owner figcaption strong { display: block; font-family: var(--slab); font-size: 18px; color: var(--ink); }
.about h2 { font-size: clamp(32px, 4.4vw, 46px); }
.about p { margin-top: 16px; color: #3a4755; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; font-weight: 600; }
.points svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 4px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } .about-photo { max-width: 480px; padding: 0 28px 52px 0; } }
@media (max-width: 420px) { .owner figcaption strong { font-size: 16px; } .owner figcaption { font-size: 13px; } }

/* Area */
.area { background: var(--navy); color: var(--white); }
.area .kicker { color: var(--spark); }
.area .section-head p { color: #b9c7d6; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.towns li { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 16px; }
.area .note { margin-top: 26px; color: #b9c7d6; max-width: 44em; }
.area .note a { color: var(--white); font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 14px 0; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.contact-list li:last-child a { border-bottom: 1px solid var(--line); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-list svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.contact-list strong { font-size: clamp(15px, 4.6vw, 19px); font-weight: 700; overflow-wrap: anywhere; }
.contact-list a:hover strong { color: var(--blue); }
form { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 30px; display: grid; gap: 16px; }
form h3 { font-size: 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #76859a; border-radius: 6px; background: var(--white); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
form .hint { font-size: 14px; color: var(--steel); }
form .hint.ok { font-size: 17px; font-weight: 600; color: #17603a; }
form .hint.err { font-size: 16px; font-weight: 600; color: #9a2b1f; }
.trap { position: absolute; left: -9999px; }
.photos { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.photos legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.photos input { font-size: 15px; padding: 9px 10px; }
button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } form { padding: 22px; } }

/* Footer */
footer { background: var(--navy); color: #b9c7d6; padding: 44px 0 110px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
footer .brand img { width: 56px; height: 56px; }
footer a { color: var(--white); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; width: 100%; }
.foot-nav a { font-weight: 600; text-decoration: none; }
@media (min-width: 761px) { footer { padding-bottom: 44px; } }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); }
.callbar .btn { padding: 12px 10px; font-size: 16px; }
/* Netlify's free plan adds a "Powered by Netlify" badge in the bottom-right corner (about 64px tall).
   On phones the bar keeps an empty strip underneath for it so the badge never covers a button.
   If the plan is upgraded and the badge is turned off, delete the padding-bottom and footer lines here. */
@media (max-width: 760px) {
  .callbar { display: grid; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  footer { padding-bottom: 170px; }
  html { scroll-padding-bottom: 150px; }
}

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; max-height: 96dvh; }
dialog.lightbox::backdrop { background: rgba(5,12,22,.9); }
dialog.lightbox img { max-width: 96vw; max-height: calc(96vh - 60px); max-height: calc(96dvh - 60px); border-radius: 6px; }
dialog.lightbox button { display: block; margin: 12px auto 0; background: var(--white); border: 0; border-radius: 6px; padding: 12px 24px; min-height: 44px; font: 700 16px var(--sans); cursor: pointer; }
html:has(dialog[open]) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Menu entry for the quote page: the header button covers it on wide screens */
@media (min-width: 1280px) { .nav-links .link-quote { display: none; } }

/* Request a quote page */
.quote-page { padding: 56px 0 88px; }
.quote-grid { display: grid; grid-template-columns: 5fr 6fr; grid-template-areas: "intro form" "aside form"; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 32px; align-items: start; }
.q-intro { grid-area: intro; }
.q-form { grid-area: form; }
.q-aside { grid-area: aside; }
.q-intro h1 { font-size: clamp(34px, 5vw, 52px); }
.q-intro p { color: var(--steel); margin-top: 14px; }
.q-aside h2 { font-size: 22px; }
.q-aside .points { margin-top: 14px; }
.q-aside .points li { font-weight: 500; }
.call-card { margin-top: 30px; border: 1px solid var(--line); border-left: 4px solid var(--spark); border-radius: 8px; padding: 22px 24px; }
.call-card p { color: var(--steel); font-size: 16px; margin: 6px 0 16px; }
.call-card .alt-contact { margin: 14px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.callbar.single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "aside"; row-gap: 24px; } .quote-page { padding: 32px 0 64px; } }
@media (max-width: 360px) { .call-card { padding: 20px 16px; } .call-card .btn { width: 100%; padding: 14px 12px; font-size: 17px; white-space: nowrap; } }
