/*
Theme Name: J Mosher Excavating
Theme URI: https://jmosherexcavatingvt.com/
Author: NEK Data
Description: Independent one-page contractor site for J. Mosher Excavating.
Version: 1.0.0
Text Domain: jmosher
*/

:root {
  --ink: #111312;
  --paper: #f7f4ee;
  --stone: #d8d1c5;
  --slate: #293133;
  --moss: #4e634a;
  --clay: #b7662c;
  --gold: #d7a447;
  --white: #ffffff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 19, 18, 0.12);
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  width: clamp(230px, 30vw, 390px);
  height: 68px;
  overflow: hidden;
  min-width: 220px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--clay);
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.hero .button.secondary,
.cta .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.hero .button.secondary:hover,
.hero .button.secondary:focus-visible,
.cta .button.secondary:hover,
.cta .button.secondary:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 84px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(112deg, rgba(17, 19, 18, 0.94) 0%, rgba(17, 19, 18, 0.82) 47%, rgba(17, 19, 18, 0.35) 100%),
    radial-gradient(circle at 78% 30%, rgba(215, 164, 71, 0.24), transparent 28%),
    repeating-linear-gradient(142deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, #3b403b, #151716);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background:
    linear-gradient(11deg, #111312 0 31%, transparent 31.3%),
    linear-gradient(-9deg, rgba(183, 102, 44, 0.72) 0 24%, transparent 24.3%),
    linear-gradient(4deg, rgba(247, 244, 238, 0.14) 0 16%, transparent 16.3%);
  opacity: 0.82;
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 148px) 0 clamp(54px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  border-left: 6px solid var(--clay);
  padding: 28px;
  background: rgba(247, 244, 238, 0.94);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.hero-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.hero-card p {
  margin-bottom: 0;
  color: #3f4643;
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section.dark {
  background: var(--slate);
  color: var(--white);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading p {
  margin-bottom: 0;
  color: #56605b;
  font-size: 1.04rem;
}

.dark .section-heading p {
  color: rgba(255, 255, 255, 0.73);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service {
  min-height: 236px;
  padding: 26px;
  border: 1px solid rgba(17, 19, 18, 0.13);
  background: var(--white);
}

.service-number {
  display: block;
  margin-bottom: 34px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.service h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.service p {
  margin-bottom: 0;
  color: #4c5550;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.statement {
  padding: clamp(32px, 5vw, 60px);
  background: var(--ink);
  color: var(--white);
}

.statement h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
}

.statement p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  padding: 18px 20px;
  border-left: 4px solid var(--clay);
  background: rgba(247, 244, 238, 0.08);
  font-weight: 750;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.step {
  padding: 28px;
  background: var(--slate);
}

.step span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 22px 0 10px;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-area {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.towns li {
  padding: 10px 14px;
  border: 1px solid rgba(17, 19, 18, 0.15);
  background: var(--white);
  font-weight: 760;
}

.cta {
  background:
    linear-gradient(90deg, rgba(17, 19, 18, 0.92), rgba(17, 19, 18, 0.72)),
    repeating-linear-gradient(135deg, rgba(215, 164, 71, 0.28) 0 10px, transparent 10px 20px),
    var(--ink);
  color: var(--white);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 34px 0;
  background: #0b0c0c;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 76px;
  }

  .nav {
    display: none;
  }

  .hero-inner,
  .section-heading,
  .split,
  .service-area,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .services-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 22px;
  }
}
