:root {
  color-scheme: light;
  --evergreen: #136f63;
  --evergreen-dark: #0b4f46;
  --charcoal: #1f2933;
  --muted: #52616b;
  --divider: #b8c6cf;
  --surface: #ffffff;
  --soft-surface: #f2f6f7;
  --warning: #a53b32;
  --form-boundary: #0b4f46;
  --control-border: #71858f;
  --lead-background: #e8f1ee;
  --selected-background: #0b4f46;
  --selected-focus: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

button,
a,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.content-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.site-header__brand {
  font-weight: 700;
  text-decoration: none;
}

.site-header__home {
  color: var(--evergreen-dark);
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 96px 0 76px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(16, 30, 32, 0.66);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__eyebrow,
.section-heading__eyebrow,
.site-footer__label {
  margin: 0 0 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1,
.section-heading h2,
.lead-intro h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
}

.hero__summary {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 19px;
}

.service-section {
  padding: 80px 0;
  border-top: 1px solid var(--divider);
}

.service-section--detection {
  background: var(--soft-surface);
}

.service-section--engineering {
  background: var(--surface);
}

.service-section--equipment {
  background: #f7f4ec;
}

.service-section--consulting {
  background: #eef3f5;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-bottom: 32px;
}

.section-heading__eyebrow {
  color: var(--evergreen-dark);
}

.section-heading h2 {
  font-size: 30px;
  line-height: 1.35;
}

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

.service-detail {
  min-width: 0;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.service-detail h3 {
  margin: 0 0 12px;
  color: var(--evergreen-dark);
  font-size: 18px;
  letter-spacing: 0;
}

.service-detail p,
.service-detail ul {
  margin: 0;
}

.service-detail ul {
  padding-left: 22px;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.service-contact {
  min-height: 44px;
  border: 1px solid var(--evergreen-dark);
  border-radius: 4px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--evergreen);
  cursor: pointer;
}

.service-contact:hover {
  background: var(--evergreen-dark);
}

.service-detail-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--evergreen-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.lead-section {
  scroll-margin-top: 24px;
  border-top: 1px solid var(--divider);
  padding: 80px 0;
  background: var(--lead-background);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}

.lead-intro h2 {
  font-size: 30px;
  line-height: 1.35;
}

.lead-intro > p:not(.section-heading__eyebrow) {
  margin: 18px 0 0;
}

.information-use {
  border-left: 3px solid var(--evergreen);
  padding-left: 16px;
  color: var(--muted);
  font-size: 15px;
}

.lead-form {
  min-width: 0;
  border-top: 3px solid var(--form-boundary);
  padding-top: 24px;
}

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

.form-field {
  min-width: 0;
  margin-bottom: 20px;
}

.form-field label,
.service-choice legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--charcoal);
  background: var(--surface);
}

.form-field input {
  min-height: 46px;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.service-choice {
  min-width: 0;
  margin: 0 0 20px;
  border: 0;
  padding: 0;
}

.service-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--surface);
}

.service-selector__option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.service-selector__option + .service-selector__option {
  border-left: 1px solid var(--control-border);
}

.service-selector__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.service-selector__option span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px 12px;
  color: var(--evergreen-dark);
  text-align: center;
}

.service-selector__option input:checked + span {
  color: #ffffff;
  background: var(--selected-background);
}

.service-selector__option input:focus-visible + span {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--selected-focus);
  outline-offset: -3px;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--charcoal);
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--evergreen-dark);
}

.form-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.submit-button {
  min-width: 140px;
  min-height: 46px;
  border: 1px solid var(--evergreen-dark);
  border-radius: 4px;
  padding: 10px 20px;
  color: #ffffff;
  background: var(--evergreen);
  cursor: pointer;
}

.submit-button:hover:not(:disabled) {
  background: var(--evergreen-dark);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 52px;
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--evergreen-dark);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--charcoal);
  color: #ffffff;
}

.site-footer__inner {
  padding-top: 36px;
  padding-bottom: 36px;
}

.site-footer__label {
  color: #d2e5e0;
}

.site-footer p:last-child {
  max-width: 900px;
  margin: 0;
}

:focus-visible {
  outline: 3px solid #0e9f8f;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .content-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .site-header__inner {
    min-height: 56px;
    gap: 16px;
  }

  .hero {
    min-height: 520px;
    padding-top: 72px;
    padding-bottom: 64px;
  }

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

  .hero__summary {
    font-size: 17px;
  }

  .service-section {
    padding: 56px 0;
  }

  .lead-section {
    padding: 56px 0;
  }

  .section-heading h2,
  .lead-intro h2 {
    font-size: 26px;
  }

  .service-grid,
  .lead-layout,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-layout {
    gap: 36px;
  }

  .service-detail {
    padding: 20px;
  }

  .service-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-selector__option + .service-selector__option {
    border-top: 1px solid var(--control-border);
    border-left: 0;
  }

  .form-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .submit-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
