:root {
  color-scheme: light;
  --ink: #162126;
  --muted: #647079;
  --line: #d9e0df;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --steel: #2f4858;
  --brick: #b65c38;
  --moss: #6d7f5f;
  --gold: #d7a84e;
  --shadow: 0 24px 70px rgba(22, 33, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(18, 26, 30, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: var(--brick);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
}

.nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 6vw, 72px) 88px;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 18, 21, 0.88), rgba(11, 18, 21, 0.52) 48%, rgba(11, 18, 21, 0.18)),
    linear-gradient(0deg, rgba(11, 18, 21, 0.8), rgba(11, 18, 21, 0.08) 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  width: min(680px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--brick);
  color: #fff;
  box-shadow: 0 16px 40px rgba(182, 92, 56, 0.28);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--steel);
  color: #fff;
}

.metrics div {
  min-height: 138px;
  padding: 30px clamp(18px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.metrics span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.section,
.contact-section {
  padding: clamp(68px, 9vw, 112px) clamp(20px, 6vw, 72px);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p,
.contact-section > div > p {
  color: var(--muted);
  font-size: 17px;
}

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

.service-card,
.project-item,
.quality-grid div,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 33, 38, 0.06);
}

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

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  margin-bottom: 28px;
  color: #fff;
  background: var(--moss);
  border-radius: 4px;
  font-weight: 900;
}

.service-card h3,
.project-item h3,
.quality-grid h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.28;
}

.service-card p,
.project-item p,
.quality-grid p,
.form-note {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 70px);
  background: #eef1ed;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 24px;
}

.project-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brick);
  font-weight: 800;
  font-size: 13px;
}

.quality {
  background: var(--paper);
}

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

.quality-grid div {
  min-height: 190px;
  padding: 28px;
  border-top: 5px solid var(--gold);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 80px);
  align-items: start;
  color: #fff;
  background: var(--steel);
}

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

.contact-section > div > p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #121a1e;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 980px) {
  .service-grid,
  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #121a1e;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
  }

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

  .nav a {
    padding: 12px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(11, 18, 21, 0.9), rgba(11, 18, 21, 0.42));
  }

  .service-grid,
  .quality-grid,
  .metrics,
  .project-item {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 112px;
  }

  .site-footer {
    flex-direction: column;
  }
}
