:root {
  --ink: #151716;
  --muted: #5c625e;
  --line: #d9ddd6;
  --paper: #fbfaf6;
  --white: #ffffff;
  --forest: #264136;
  --moss: #546f46;
  --clay: #a9683a;
  --clay-dark: #7d4528;
  --shadow: 0 24px 60px rgba(18, 21, 19, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(21, 23, 22, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--forest);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: #313531;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding-block: 8px;
}

.site-nav a:hover,
.header-call:hover,
.site-footer a:hover {
  color: var(--clay-dark);
}

.header-call {
  min-width: max-content;
  padding: 10px 14px;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/work/dump-truck-hauling.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(8, 12, 10, 0.48);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(680px, calc(100% - 36px));
  min-height: calc(100vh - 76px);
  margin-inline: auto;
  padding: 72px 0;
  color: var(--white);
  transform: translateX(calc((min(100vw, var(--max)) - min(680px, calc(100vw - 36px))) / -2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1bd82;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.34rem;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.section,
.section-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 48px);
}

.section-band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.intro-grid,
.area-grid,
.contact-grid,
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro-grid p:last-child,
.work-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 260px;
  padding: 26px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-item p {
  margin: 14px 0 0;
  color: var(--muted);
}

.work-section {
  background: #eef0ea;
}

.work-copy {
  align-self: center;
}

.photo-strip {
  display: grid;
  gap: 16px;
}

.photo-strip figure,
.owner-operated {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-strip figcaption,
.owner-operated-label {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

.owner-operated-panel {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  min-height: 260px;
}

.owner-operated-mark {
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    linear-gradient(rgba(38, 65, 54, 0.84), rgba(38, 65, 54, 0.84)),
    url("assets/work/equipment-transport.jpg") center / cover;
  color: rgba(255, 255, 255, 0.92);
}

.owner-operated-mark span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 700;
}

.owner-operated-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 34px);
}

.owner-operated-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery-section {
  background: var(--paper);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 34px;
}

.gallery-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.gallery-item {
  position: relative;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  background: #111513;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 18px 42px rgba(18, 21, 19, 0.14);
}

.gallery-item-large {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 12, 10, 0.02) 30%, rgba(8, 12, 10, 0.78) 100%);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.gallery-item > span:not(.gallery-count) {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.gallery-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.1;
}

.gallery-item small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-count {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(251, 250, 246, 0.92);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.modal-open {
  overflow: hidden;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.media-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 10, 0.78);
  border: 0;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  max-height: min(86vh, 920px);
  background: var(--paper);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--line);
}

.modal-header p {
  margin: 0 0 3px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-header h2 {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.modal-close {
  min-width: max-content;
  padding: 9px 12px;
  background: var(--forest);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-close:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.modal-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  min-height: 0;
  background: #111513;
}

.modal-media {
  display: grid;
  place-items: center;
  min-height: 0;
}

.modal-media img,
.modal-media video {
  width: 100%;
  height: 100%;
  max-height: calc(86vh - 168px);
  object-fit: contain;
}

.modal-nav {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  background: rgba(251, 250, 246, 0.08);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 0;
}

.modal-nav::before {
  font-size: 1.7rem;
  line-height: 1;
}

.modal-prev::before {
  content: "<";
}

.modal-next::before {
  content: ">";
}

.modal-nav:hover,
.modal-nav:focus-visible {
  background: rgba(251, 250, 246, 0.18);
}

.modal-nav:disabled {
  cursor: default;
  opacity: 0.35;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding: 10px;
  overflow-x: auto;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.modal-thumb {
  position: relative;
  flex: 0 0 82px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  background: #111513;
  border: 2px solid transparent;
  cursor: pointer;
}

.modal-thumb[aria-current="true"] {
  border-color: var(--clay);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 4px;
  background: rgba(251, 250, 246, 0.9);
  color: var(--forest);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-list span {
  padding: 10px 13px;
  background: #eef0ea;
  border: 1px solid var(--line);
  color: #303630;
  font-weight: 800;
}

.contact-section {
  background: var(--forest);
  color: var(--white);
}

.contact-section .eyebrow {
  color: #f1bd82;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: clamp(24px, 4vw, 36px);
  background: var(--white);
  color: var(--ink);
  font-style: normal;
  box-shadow: var(--shadow);
}

.contact-panel strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.contact-panel span {
  color: var(--muted);
}

.contact-panel a {
  width: fit-content;
  color: var(--forest);
  font-size: 1.05rem;
  font-weight: 900;
}

.contact-panel a:hover {
  color: var(--clay-dark);
}

.site-footer {
  padding: 22px clamp(18px, 4vw, 48px);
  background: #101211;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    transform: none;
  }

  .intro-grid,
  .area-grid,
  .contact-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item-large {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    min-height: auto;
  }

  .brand {
    width: 100%;
  }

  .header-call {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .hero-content {
    min-height: 660px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero::before {
    background: rgba(8, 12, 10, 0.58);
  }

  .button {
    width: 100%;
  }

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

  .service-item {
    min-height: auto;
  }

  .service-item span {
    margin-bottom: 28px;
  }

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

  .gallery-item,
  .gallery-item img {
    min-height: 240px;
  }

  .gallery-item-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .modal-panel {
    max-height: 88vh;
  }

  .modal-body {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-close {
    width: 100%;
  }

  .owner-operated-panel {
    grid-template-columns: 1fr;
  }

  .owner-operated-mark {
    min-height: 180px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
