:root {
  --ink: #111315;
  --muted: #5b626a;
  --paper: #f5f3ef;
  --panel: #ffffff;
  --line: #ded8cf;
  --steel: #343a40;
  --red: #9b1f25;
  --red-dark: #65151b;
  --gold: #bf9b62;
  --shadow: 0 24px 70px rgba(17, 19, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(245, 243, 239, 0.94);
  box-shadow: 0 16px 40px rgba(17, 19, 21, 0.1);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 136px clamp(20px, 5vw, 76px) 76px;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.94) 0%, rgba(17, 19, 21, 0.77) 38%, rgba(17, 19, 21, 0.1) 100%),
    linear-gradient(0deg, rgba(17, 19, 21, 0.68), rgba(17, 19, 21, 0.05)),
    url("assets/cnc-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

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

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

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

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

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-dark);
}

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

.slogan {
  margin: 26px 0 0;
  color: #fff;
  font-weight: 800;
}

.intro-band {
  position: relative;
  margin-top: -44px;
  padding: 0 clamp(20px, 5vw, 76px);
}

.intro-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-grid > div {
  min-height: 154px;
  padding: 28px;
  background: #fff;
}

.metric {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 900;
}

.intro-grid p,
.service-card p,
.quality-copy p,
.contact-copy p,
.process-panel span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section,
.industries,
.quality-section,
.contact-section {
  padding: clamp(78px, 10vw, 132px) clamp(20px, 5vw, 76px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 244px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 19, 21, 0.05);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--steel);
  font-size: 0.82rem;
  font-weight: 900;
}

.industries {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 19, 21, 0.96), rgba(52, 58, 64, 0.92)),
    radial-gradient(circle at 20% 10%, rgba(155, 31, 37, 0.42), transparent 35%);
}

.industries h2 {
  max-width: 760px;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 940px;
}

.industry-list span {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.quality-copy p,
.contact-copy p {
  margin-top: 24px;
  max-width: 660px;
}

.process-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.process-panel div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 24px;
  background: #fff;
}

.process-panel strong {
  color: var(--red);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 6vw, 80px);
  background: #ebe6dd;
}

.rfq-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfc7bb;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
}

input[type="file"] {
  cursor: pointer;
}

.hidden-field {
  display: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(191, 155, 98, 0.55);
  outline-offset: 3px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.1fr);
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  padding: 34px clamp(20px, 5vw, 76px);
  color: #fff;
  background: var(--ink);
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-main {
  display: grid;
  gap: 16px;
}

.footer-details {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1fr);
  gap: 28px;
}

.footer-details h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-details a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
}

.footer-details p {
  margin: 0 0 6px;
  font-weight: 600;
}

.thanks-page {
  min-height: 100vh;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 19, 21, 0.94), rgba(52, 58, 64, 0.9)),
    url("assets/cnc-hero.png") center / cover no-repeat;
}

.thanks-screen {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 34px;
  padding: clamp(28px, 6vw, 76px);
}

.thanks-panel {
  max-width: 760px;
}

.thanks-panel h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.thanks-panel p {
  max-width: 580px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .brand span {
    max-width: 210px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(17, 19, 21, 0.94) 0%, rgba(17, 19, 21, 0.82) 62%, rgba(17, 19, 21, 0.5) 100%),
      url("assets/cnc-hero.png") center / cover no-repeat;
  }

  .intro-grid,
  .service-grid,
  .quality-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quality-section,
  .contact-section {
    gap: 34px;
  }

  .site-footer,
  .footer-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 88vh;
    padding: 118px 18px 64px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .intro-band {
    margin-top: 0;
    padding: 0;
  }

  .intro-grid {
    border-radius: 0;
  }

  .service-card {
    min-height: 0;
  }

  .process-panel div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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