:root {
  --ink: #1f2722;
  --muted: #647067;
  --line: #d7ded7;
  --paper: #f5f6f2;
  --panel: #ffffff;
  --green: #2f6044;
  --rust: #9a5638;
  --steel: #51606a;
  --wood: #8a623d;
  --shadow: 0 20px 50px rgba(31, 39, 34, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 39, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(31, 39, 34, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(215, 222, 215, 0.9);
  background: rgba(245, 246, 242, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #0d0f0e;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a:hover,
nav a.active {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 22, 18, 0.78), rgba(15, 22, 18, 0.26) 58%, rgba(15, 22, 18, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 36px));
  margin: 0 0 clamp(54px, 10vh, 120px) clamp(18px, 5vw, 72px);
  color: #fff;
}

.hero-logo {
  width: clamp(88px, 12vw, 150px);
  height: clamp(88px, 12vw, 150px);
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.56);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
}

.button.primary,
.button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.intro,
.department-grid,
.page {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  padding: 64px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  margin: 0 0 14px;
}

.intro p,
.service-layout p,
.service-list li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 72px;
}

.department-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.department-card span {
  display: block;
  margin-bottom: 42px;
  font-size: 1.2rem;
  font-weight: 900;
}

.department-card:nth-child(1) {
  border-top: 5px solid var(--steel);
}

.department-card:nth-child(2) {
  border-top: 5px solid var(--wood);
}

.department-card:nth-child(3) {
  border-top: 5px solid var(--rust);
}

.page {
  padding: 28px 0 72px;
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-content: end;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 58px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 27, 23, 0.82), rgba(20, 27, 23, 0.22)),
    url("assets/dj-ranch-oregon-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.page-hero.automotive {
  background-position: center;
}

.page-hero.woodworking {
  background-position: 42% center;
}

.page-hero.fabrication {
  background-position: 62% center;
}

.page-hero .eyebrow {
  color: #b7dfc1;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
}

.service-layout > div,
.service-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.service-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .site-header,
  footer,
  .intro,
  .service-layout {
    display: block;
  }

  nav {
    margin-top: 12px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy {
    margin: 0 auto 38px;
  }

  .intro {
    padding-top: 42px;
  }

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

  .service-list {
    margin-top: 14px;
  }
}
