:root {
  --red: #d42f2e;
  --red-dark: #a51f1f;
  --ink: #1f2933;
  --muted: #65727f;
  --line: #e8edf2;
  --soft: #f6f7f9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 400 16px/1.7 Lato, sans-serif;
  color: var(--ink);
  background: var(--white);
}

a {
  color: var(--red);
}

a:hover,
a:focus {
  color: var(--red-dark);
  text-decoration: none;
}

h1,
h2,
h3,
.navbar {
  font-family: Montserrat, sans-serif;
}

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

h1 {
  max-width: 880px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: 0;
  text-transform: none;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.navbar {
  min-height: 70px;
  margin-bottom: 0;
  background: rgba(212, 47, 46, 0.96);
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.12);
  font-size: 12px !important;
  letter-spacing: 1px;
}

.navbar .container {
  min-height: 70px;
  display: flex;
  align-items: center;
}

.navbar-header {
  flex: 1 0 auto;
}

.navbar-brand {
  height: 70px;
  padding: 16px 0;
}

.navbar-brand img {
  width: 90px;
  height: auto;
  display: block;
}

.navbar-nav > li > a {
  color: var(--white) !important;
  padding-top: 25px;
  padding-bottom: 25px;
  font-weight: 700;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: var(--red-dark) !important;
  background: var(--white) !important;
}

.navbar-default .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.6);
  margin-top: 18px;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: var(--white);
}

.navbar-default .navbar-collapse {
  border-color: rgba(255, 255, 255, 0.25);
}

.hero {
  min-height: 700px;
  padding: 160px 7vw 70px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 40px;
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.86) 0%, rgba(15, 23, 32, 0.62) 48%, rgba(164, 31, 31, 0.38) 100%),
    url("images/header.JPG") center/cover no-repeat;
}

.hero__content {
  max-width: 920px;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.45;
}

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

.eyebrow {
  margin-bottom: 12px;
  color: var(--red);
  font: 700 12px/1.2 Montserrat, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero .eyebrow,
.section__heading--light .eyebrow {
  color: #ffd6d6;
}

.btn {
  border-radius: 4px;
  border: 2px solid transparent;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 41, 51, 0.14);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
  color: var(--white) !important;
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--white);
  color: var(--red-dark) !important;
}

.section {
  padding: 90px 7vw;
}

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

.section--grey {
  background: var(--soft);
}

.section--red {
  background:
    linear-gradient(135deg, rgba(120, 18, 18, 0.94), rgba(212, 47, 46, 0.94)),
    url("images/6_medium.JPG") center/cover no-repeat;
  color: var(--white);
}

.section__heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__heading p {
  color: var(--muted);
  font-size: 18px;
}

.section__heading--light h2,
.section__heading--light p {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 300px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.service-grid--links .service-card {
  display: flex;
  flex-direction: column;
}

.service-card__icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-bottom: 22px;
}

.service-card p,
.about p,
.contact-intro {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  color: var(--red);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.text-link::after {
  content: ">";
  padding-left: 8px;
}

.materials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.material-item {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: var(--white);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-align: center;
}

.materials--described .material-item {
  min-height: 118px;
  display: block;
  text-align: left;
}

.material-item strong,
.material-item span {
  display: block;
}

.material-item span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font: 400 14px/1.45 Lato, sans-serif;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.step {
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(31, 41, 51, 0.07);
}

.step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.step strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-size: 18px;
}

.step p {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: 52px;
  align-items: center;
}

.about__text {
  max-width: 680px;
}

.about__text .section__heading,
.about__text h2 {
  text-align: left;
}

.about__text p {
  font-size: 18px;
  margin-bottom: 18px;
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 41, 51, 0.16);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(31, 41, 51, 0.1);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

.section--contact {
  background:
    linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(31, 41, 51, 0.12);
}

.contact-list {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-list p {
  margin-bottom: 12px;
  font-size: 17px;
}

.map {
  width: 100%;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
}

.footer {
  padding: 34px 7vw;
  background: #171f27;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.page-hero {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 150px 7vw 70px;
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.88), rgba(15, 23, 32, 0.54)),
    url("images/header.JPG") center/cover no-repeat;
}

.page-hero > div {
  max-width: 820px;
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

.page-hero--materials {
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.88), rgba(164, 31, 31, 0.46)),
    url("images/6_medium.JPG") center/cover no-repeat;
}

.page-hero--excavator {
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.88), rgba(164, 31, 31, 0.46)),
    url("images/5_medium.JPG") center/cover no-repeat;
}

.page-hero--ground {
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.88), rgba(164, 31, 31, 0.46)),
    url("images/7_medium.JPG") center/cover no-repeat;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 54px;
  align-items: start;
}

.detail-layout article {
  max-width: 760px;
}

.detail-layout article p {
  color: var(--muted);
  font-size: 18px;
}

.detail-box {
  padding: 30px;
  background: var(--soft);
  border-left: 5px solid var(--red);
  border-radius: 8px;
}

.detail-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-box li {
  margin-bottom: 10px;
}

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

.cta-strip p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 18px;
}

.mobile-call {
  display: none;
}

@media screen and (max-width: 991px) {
  .navbar .container {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
    display: block;
  }

  .service-grid,
  .service-grid--links,
  .gallery-grid,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .about,
  .contact-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .navbar {
    min-height: 64px;
  }

  .navbar-brand {
    height: 64px;
    padding-left: 15px;
  }

  .navbar-brand img {
    width: 78px;
  }

  .navbar-nav > li > a {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero {
    padding: 116px 22px 52px;
  }

  .page-hero {
    min-height: auto;
    padding: 118px 22px 54px;
  }

  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 22px;
  }

  .section__heading {
    text-align: left;
    margin-bottom: 30px;
  }

  .service-grid,
  .service-grid--links,
  .gallery-grid,
  .materials,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 28px;
  }

  .contact-card {
    padding: 22px;
  }

  .map {
    min-height: 340px;
  }

  .mobile-call {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 10000;
    display: block;
    padding: 14px 18px;
    border-radius: 6px;
    background: var(--red);
    color: var(--white) !important;
    box-shadow: 0 18px 38px rgba(31, 41, 51, 0.24);
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translateY(14px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-call.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .footer {
    padding-bottom: 86px;
  }
}
