:root {
  --ink: #111315;
  --steel: #2a2d2f;
  --steel-2: #555758;
  --panel: #ffffff;
  --paper: #f2f3f3;
  --line: #d6d8d9;
  --brand-red: #c93338;
  --brand-red-dark: #9f2429;
  --brand-red-soft: #f6e1e2;
  --muted: #62686b;
  --success: #566360;
  --shadow: 0 18px 50px rgba(21, 25, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-bottom: 4px solid var(--brand-red);
  box-shadow: 0 10px 28px rgba(17, 19, 21, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(430px, 44vw);
}

.brand-logo {
  display: block;
  width: clamp(190px, 23vw, 285px);
  height: auto;
}

.brand-subtitle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-left: 4px solid var(--brand-red);
  color: var(--steel);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
  background: #f2f3f3;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 700;
}

.nav-cta,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

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

.nav-cta {
  box-shadow: 0 8px 18px rgba(201, 51, 56, 0.22);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  min-height: 650px;
  padding: clamp(48px, 7vw, 110px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(105deg, rgba(17, 19, 21, 0.97) 0%, rgba(17, 19, 21, 0.87) 47%, rgba(17, 19, 21, 0.34) 100%),
    linear-gradient(180deg, rgba(201, 51, 56, 0.2), rgba(201, 51, 56, 0)),
    url("assets/hero-industrial-control-room.png") center / cover no-repeat;
}

.hero-copy {
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #e3e7e9;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.profile-panel {
  align-self: end;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-top: 6px solid var(--brand-red);
  box-shadow: var(--shadow);
}

.profile-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.profile-panel p:not(.eyebrow) {
  color: var(--muted);
}

.profile-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.profile-panel li {
  position: relative;
  padding-left: 20px;
  font-weight: 800;
}

.profile-panel li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--brand-red);
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--ink);
}

.visual-strip figure {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
}

.visual-strip img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.visual-strip figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 19, 21, 0.05), rgba(17, 19, 21, 0.78));
}

.visual-strip figcaption {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  bottom: 24px;
  z-index: 1;
  padding-left: 14px;
  border-left: 5px solid var(--brand-red);
  color: #fff;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 18px clamp(18px, 3vw, 34px);
  background: #fff;
  color: var(--steel);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip span::before {
  width: 9px;
  height: 9px;
  margin-right: 12px;
  content: "";
  background: var(--brand-red);
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.about-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--steel);
}

.about-card:first-child {
  border-top-color: var(--brand-red);
}

.about-card span {
  color: var(--brand-red-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.owners-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: var(--steel);
  color: #fff;
}

.owners-photo {
  min-height: 360px;
  overflow: hidden;
  border-left: 6px solid var(--brand-red);
}

.owners-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.owners-copy {
  max-width: 620px;
}

.owners-copy p:not(.eyebrow) {
  color: #d9dee1;
  font-size: 18px;
}

.services,
.industries,
.hvac-section {
  background: #fff;
}

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

.service-cards article {
  min-height: 210px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-red);
}

.service-cards h3 {
  color: var(--steel);
}

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

.gallery-section {
  background: var(--paper);
}

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

.photo-grid figure {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.photo-grid figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 19, 21, 0), rgba(17, 19, 21, 0.78));
}

.photo-grid figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.hvac-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

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

.equipment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.equipment-list span {
  padding: 9px 12px;
  background: var(--brand-red-soft);
  border-left: 4px solid var(--brand-red);
  color: var(--steel);
  font-weight: 900;
}

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

.industry-grid span {
  padding: 18px 20px;
  background: var(--steel);
  color: #fff;
  font-weight: 900;
  border-left: 5px solid var(--brand-red);
}

.systems {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(17, 19, 21, 0.92), rgba(42, 45, 47, 0.96)),
    url("assets/automation-plc-controls.png") center / cover no-repeat;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--brand-red);
  color: #f5f7f8;
  font-weight: 800;
}

.consult {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: var(--brand-red-soft);
}

.consult > div {
  max-width: 560px;
}

.consult-copy {
  order: 1;
}

.consult form {
  order: 2;
}

.contact-notes {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border-left: 5px solid var(--brand-red);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  font-style: normal;
}

.contact-details span {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42, 45, 47, 0.16);
}

.contact-details strong {
  color: var(--steel);
}

.contact-details a {
  color: var(--brand-red-dark);
  font-weight: 900;
}

.contact-notes strong {
  color: var(--steel);
}

.contact-notes span {
  color: var(--muted);
}

form {
  display: grid;
  gap: 16px;
  scroll-margin-top: 260px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-heading {
  display: grid;
  gap: 6px;
}

.form-heading h3 {
  margin-bottom: 0;
}

.form-heading p {
  margin-bottom: 4px;
  color: var(--muted);
  text-transform: none;
}

.hidden-field {
  display: none;
}

.quick-intake {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f6f7f7;
  border: 1px solid var(--line);
}

.quick-intake > div {
  display: grid;
  gap: 4px;
}

.quick-intake strong,
legend {
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-intake span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #bfc6ca;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  cursor: pointer;
}

.choice-pill input {
  width: auto;
  accent-color: var(--brand-red);
}

.choice-pill span {
  color: var(--steel);
}

.choice-pill:has(input:focus-visible) {
  outline: 3px solid rgba(199, 49, 54, 0.25);
  outline-offset: 2px;
}

.choice-pill:has(input:checked) {
  border-color: var(--brand-red);
  background: rgba(199, 49, 54, 0.09);
}

.choice-pill:has(input:checked) span {
  color: var(--brand-red-dark);
}

label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfc6ca;
  border-radius: 3px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

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

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
}

textarea {
  resize: vertical;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

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

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-cta {
    width: 100%;
  }

  .hero,
  .consult,
  .visual-strip,
  .trust-strip,
  .split-copy,
  .owners-section {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .service-cards,
  .industry-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .consult form {
    order: 1;
  }

  .consult-copy {
    order: 2;
  }
}

@media (max-width: 520px) {
  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-subtitle {
    max-width: none;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
