:root {
  --navy: #061b31;
  --navy-2: #0d2a44;
  --gold: #b7853d;
  --gold-dark: #8c642f;
  --stone: #d4d7dc;
  --paper: #f7f5f1;
  --white: #ffffff;
  --ink: #101820;
  --muted: #5d6672;
  --line: rgba(6, 27, 49, 0.14);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container-fluid {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: clamp(22px, 5vw, 62px);
  padding-right: clamp(22px, 5vw, 62px);
  width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(247, 245, 241, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 94px;
  padding: 10px clamp(18px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand img {
  height: 70px;
  object-fit: contain;
  width: 116px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  text-transform: uppercase;
}

.site-nav a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  position: relative;
}

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

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

.menu-toggle {
  background: var(--navy);
  border: 0;
  display: none;
  height: 44px;
  padding: 12px;
  width: 48px;
}

.menu-toggle span {
  background: var(--white);
  display: block;
  height: 2px;
  margin: 5px 0;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  align-items: center;
  background:
    linear-gradient(rgba(6, 27, 49, 0.2), rgba(6, 27, 49, 0.42)),
    url("/assets/excavating-hero.jpg") center / cover no-repeat;
  display: flex;
  min-height: 700px;
  padding-top: 94px;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--stone));
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}

.center-align {
  text-align: center;
}

.hero-main-content {
  color: var(--white);
  width: 100%;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.95;
  margin-bottom: 16px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.34);
}

.hero h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 0;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.32);
}

.excavating {
  background: var(--paper);
  padding: clamp(58px, 8vw, 104px) 0 clamp(66px, 8vw, 110px);
}

.top-content {
  margin: 0 auto clamp(56px, 7vw, 88px);
  max-width: 1040px;
  text-align: center;
}

.top-content h2,
.grid-wrapper > h2,
.pre-footer-form h2 {
  color: var(--navy);
  font-size: clamp(33px, 4.6vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
  text-transform: none;
}

.top-content p,
.bottom-content p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  margin-left: auto;
  margin-right: auto;
  max-width: 1010px;
}

.grid-wrapper {
  margin-top: clamp(34px, 5vw, 62px);
  text-align: center;
}

.grid-wrapper > h2 {
  margin-bottom: clamp(32px, 5vw, 60px);
  text-transform: none;
}

.service-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
}

.one-ex {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 222px;
  padding: 32px 20px 28px;
  position: relative;
}

.one-ex::before {
  background: var(--gold);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.one-ex-icon {
  align-items: center;
  display: flex;
  height: 92px;
  justify-content: center;
  margin: 0 0 24px;
}

.one-ex-icon img {
  filter: sepia(24%) saturate(128%) hue-rotate(355deg);
  max-height: 90px;
  object-fit: contain;
}

.one-ex-title {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.bottom-content {
  margin: clamp(50px, 7vw, 86px) auto 0;
  text-align: center;
}

.pre-footer-form {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
}

.pre-footer-grid {
  align-items: start;
  display: grid;
  gap: clamp(34px, 6vw, 90px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.pre-footer-form h2 {
  color: var(--white);
  font-size: clamp(44px, 6vw, 82px);
  margin-bottom: 0;
  text-transform: none;
}

.contact-form {
  background: var(--white);
  border-top: 6px solid var(--gold);
  color: var(--navy);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}

.contact-form label {
  color: var(--navy);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(6, 27, 49, 0.22);
  color: var(--navy);
  font: inherit;
  min-height: 46px;
  padding: 12px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button,
.inline-button {
  align-items: center;
  background: var(--gold);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.12em;
  min-height: 48px;
  padding: 14px 22px;
  text-transform: uppercase;
}

.contact-form button:hover,
.inline-button:hover {
  background: var(--gold-dark);
}

.site-footer {
  background: #061522;
  color: var(--white);
  padding: 42px 0;
}

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

.footer-logo img {
  background: var(--paper);
  height: auto;
  margin-bottom: 18px;
  max-width: 176px;
  padding: 10px;
}

.footer-copyright,
.footer-contact p {
  color: #d8dde3;
  margin-bottom: 0;
}

.footer-contact {
  text-align: right;
}

.footer-contact p + p {
  margin-top: 18px;
}

.footer-contact a:not(.inline-button) {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 78px;
  }

  .brand img {
    height: 58px;
    width: 96px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 16px 22px 22px;
    position: fixed;
    right: 0;
    top: 78px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 620px;
    padding-top: 78px;
  }

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

  .pre-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero h2 {
    font-size: clamp(25px, 8vw, 38px);
  }

  .top-content h2,
  .grid-wrapper > h2,
  .pre-footer-form h2 {
    font-size: clamp(31px, 10vw, 46px);
  }

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

  .one-ex {
    min-height: 190px;
  }

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

  .footer-contact {
    text-align: left;
  }
}
