:root {
  --blue: #174f8f;
  --blue-dark: #12385f;
  --teal: #19aaa4;
  --orange: #f05a28;
  --ink: #14202b;
  --muted: #5d6975;
  --light: #f4f7f8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 34, 52, 0.82), rgba(15, 34, 52, 0));
  transition: background 180ms ease, min-height 180ms ease;
}

.site-header.scrolled {
  min-height: 70px;
  background: rgba(18, 56, 95, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(190px, 20vw, 300px);
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));
}

.main-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  padding: 8px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  color: var(--white);
  background: var(--blue-dark);
}

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: 150px clamp(24px, 6vw, 92px) 80px;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 25, 38, 0.76), rgba(12, 25, 38, 0.3));
}

.hero-train {
  background-image: url("assets/train.webp");
}

.hero-shed {
  background-image: url("assets/shed.webp");
}

.hero-copy {
  position: relative;
  max-width: 620px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.hero-copy p,
.section-heading p,
.contact-heading p {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0 0 28px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  color: var(--white);
  background: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.button.ghost {
  background: transparent;
  border-color: var(--white);
}

.button.dark {
  background: var(--blue);
  border-color: var(--blue);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1.3fr);
  background: var(--light);
}

.quote-panel {
  margin: 0;
  padding: clamp(42px, 7vw, 86px);
  color: var(--white);
  background: var(--blue);
}

.quote-panel blockquote {
  margin: 0;
}

.quote-panel p {
  margin: 0 0 28px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  font-weight: 700;
}

.quote-panel cite {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 700;
}

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

.service-teasers article {
  min-height: 260px;
  padding: clamp(32px, 5vw, 62px);
  background: var(--white);
  border: 1px solid #e8eef2;
}

.icon {
  color: var(--teal);
  font-weight: 900;
  font-size: 14px;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.contact-heading h2,
.trusted h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.cards,
.project-grid,
.company-layout,
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card,
.project-grid article,
.cert-panel {
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(21, 45, 70, 0.1);
}

.card h3,
.project-grid h3,
.company h3 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 23px;
  line-height: 1.25;
}

.card p,
.company p,
.project-grid p {
  margin: 0;
  color: var(--muted);
}

.projects {
  background: var(--light);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-grid article {
  min-height: 210px;
}

.project-grid h3 {
  font-size: 18px;
}

.company-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 48px;
  align-items: start;
}

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

.company .button {
  margin-top: 28px;
}

.cert-panel ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(360px, 1fr);
  gap: 40px;
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--blue-dark);
}

.contact-heading h2 {
  color: var(--white);
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form .message {
  grid-row: span 3;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-details {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.trusted {
  padding: clamp(60px, 9vw, 110px) 20px;
  text-align: center;
  background: var(--light);
}

.trusted h2 {
  max-width: 860px;
  margin: 0 auto;
  text-transform: lowercase;
}

.site-footer {
  padding: 64px clamp(20px, 5vw, 72px) 28px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.2fr;
  gap: 44px;
}

.footer-brand {
  color: var(--white);
}

.footer-logo {
  width: min(100%, 320px);
}

.site-footer nav {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.entity-list div:last-child {
  grid-column: 1 / -1;
}

.entity-list dt {
  color: var(--white);
  font-weight: 800;
}

.entity-list dd {
  margin: 0;
}

.copyright {
  max-width: 1180px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .two-column,
  .company-layout,
  .contact,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: 70vh;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    background: rgba(18, 56, 95, 0.96);
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero h1,
  .hero h2 {
    font-size: 40px;
  }

  .service-teasers,
  .project-grid,
  .contact-form,
  .entity-list {
    grid-template-columns: 1fr;
  }

  .contact-form .message {
    grid-row: auto;
  }
}
