:root {
  --ink: #17243a;
  --ink-deep: #0d1626;
  --muted: #5f6773;
  --line: #dfe4ea;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --orange: #f49a20;
  --orange-dark: #cc7410;
  --steel: #778392;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 36, 58, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 36, 58, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link:focus {
  z-index: 99;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--orange);
  color: var(--ink-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 36, 58, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(13, 22, 38, 0.06);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 172px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(13, 22, 38, 0.1));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--orange-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink-deep);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--orange) 0 34%, var(--paper) 34% 40%, var(--ink) 40% 100%);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    radial-gradient(circle at 24% 62%, rgba(244, 154, 32, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(13, 22, 38, 0.93) 0%, rgba(13, 22, 38, 0.73) 42%, rgba(13, 22, 38, 0.18) 100%),
    linear-gradient(0deg, rgba(13, 22, 38, 0.32), rgba(13, 22, 38, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 88px 0 100px;
  color: var(--paper);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--ink-deep);
}

.btn-primary:hover {
  background: #ffad3f;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--paper);
}

.btn-secondary:hover {
  border-color: var(--orange);
}

section {
  padding: 92px 0;
}

.section-band {
  background:
    linear-gradient(135deg, rgba(244, 154, 32, 0.1), transparent 34%),
    var(--soft);
}

.intro-grid,
.proof-grid,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.intro-copy p,
.proof p {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-photo,
.proof-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(13, 22, 38, 0.16);
}

.intro-photo::before,
.proof-photo::before {
  content: "";
  position: absolute;
  inset: 14px auto auto 14px;
  width: 88px;
  height: 8px;
  z-index: 1;
  background: var(--orange);
}

.intro-photo img,
.proof-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

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

.section-intro {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(23, 36, 58, 0.08);
}

.service-card {
  position: relative;
  min-height: 285px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 84px;
  height: 84px;
  border: 14px solid rgba(244, 154, 32, 0.16);
  border-radius: 50%;
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-strip span {
  padding: 14px 18px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-strip span + span {
  border-left: 1px solid var(--line);
}

.service-card p,
.director-card p,
.cta p {
  color: var(--muted);
}

.service-number {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--orange-dark);
  font-weight: 900;
}

.stats {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.stats div {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(244, 154, 32, 0.08), transparent 38%),
    var(--paper);
}

.stats dt {
  color: var(--orange-dark);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.stats dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.sectors-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: start;
}

.image-band {
  position: relative;
  color: var(--paper);
  background: var(--ink-deep);
  overflow: hidden;
}

.image-band::before,
.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
}

.image-band::before {
  background:
    linear-gradient(90deg, rgba(13, 22, 38, 0.92), rgba(13, 22, 38, 0.72)),
    url("assets/trackside-civils-detail.png") center / cover;
}

.image-band::after {
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--orange) 0 45%, var(--paper) 45% 51%, var(--steel) 51% 100%);
}

.image-band .section-kicker,
.image-band h2 {
  color: var(--paper);
}

.image-band .sector-list li {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.sector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sector-list li {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 18px 18px 18px 46px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.sector-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

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

.director-card {
  position: relative;
  padding: 34px;
  border-top: 6px solid var(--orange);
  background:
    linear-gradient(135deg, rgba(244, 154, 32, 0.12), transparent 42%),
    var(--paper);
  box-shadow: 0 18px 44px rgba(23, 36, 58, 0.08);
  overflow: hidden;
}

.director-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
}

.director-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 100px;
  height: 100px;
  border: 14px solid rgba(23, 36, 58, 0.06);
  border-radius: 50%;
}

.director-card .role {
  margin-bottom: 24px;
  color: var(--ink);
  font-weight: 800;
}

.cta {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(13, 22, 38, 0.96), rgba(13, 22, 38, 0.78)),
    url("assets/trackside-civils-detail.png") center / cover;
}

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

.registration-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    url("assets/rail-supervisors.png") right top / min(62vw, 760px) auto no-repeat,
    var(--paper);
}

.registration-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--ink) 0 36%, var(--orange) 36% 72%, var(--steel) 72% 100%);
}

.registration .container {
  position: relative;
  z-index: 1;
}

.registration-form {
  display: grid;
  gap: 14px;
}

.form-note,
.field-help,
.registration-status,
.registration-summary p {
  color: var(--muted);
}

.form-note {
  margin-bottom: 6px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(251, 252, 253, 0.96);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(23, 36, 58, 0.06);
}

.form-section summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(244, 154, 32, 0.12), transparent 42%),
    var(--soft);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.form-section summary span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-deep);
  background: var(--orange);
}

.form-section > :not(summary) {
  margin: 18px;
}

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

.span-2 {
  grid-column: span 2;
}

.registration-form label,
.registration-form fieldset {
  min-width: 0;
}

.registration-form label:not(.check-row),
.registration-form fieldset {
  display: grid;
  gap: 8px;
}

.registration-form span,
.registration-form legend {
  color: var(--ink);
  font-weight: 800;
}

.registration-form fieldset {
  padding: 0;
  border: 0;
}

.registration-form legend {
  margin-bottom: 10px;
}

.registration-form input,
.registration-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.registration-form input[type="checkbox"],
.registration-form input[type="radio"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--orange-dark);
}

.registration-form input[type="file"] {
  min-height: 54px;
  padding: 12px;
}

.registration-form textarea {
  resize: vertical;
}

.choice-grid,
.choice-stack {
  display: grid;
  gap: 10px;
}

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

.choice-grid label,
.choice-stack label,
.check-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d8dee6;
  border-radius: 4px;
  background: var(--paper);
  font-weight: 700;
}

.choice-grid label span,
.choice-stack label span,
.check-row span {
  font-weight: 700;
}

.policy-copy {
  padding: 18px;
  border-left: 4px solid var(--orange);
  background: var(--paper);
}

.policy-copy p {
  margin: 0;
  color: var(--muted);
}

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

.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline-dark:hover {
  border-color: var(--orange-dark);
  color: var(--orange-dark);
}

.registration-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.registration-summary {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange);
  background: var(--soft);
}

.summary-output {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.summary-output div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.summary-output strong {
  display: block;
  color: var(--ink);
}

.summary-output span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.cta h2 {
  color: var(--paper);
}

.cta p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 42px 0 22px;
  background: #f7f8fa;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid img {
  width: 130px;
  height: auto;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-bottom p {
  color: var(--muted);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.footer-grid a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 720px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(13, 22, 38, 0.93), rgba(13, 22, 38, 0.5));
  }

  .intro-grid,
  .proof-grid,
  .sectors-grid,
  .cta-grid,
  .director-grid {
    grid-template-columns: 1fr;
  }

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

  .capability-strip {
    grid-template-columns: 1fr;
  }

  .capability-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-photo {
    margin-top: 28px;
  }

  .registration-visual {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
      url("assets/rail-supervisors.png") center top / auto 360px no-repeat,
      var(--paper);
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand img {
    width: 140px;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .site-nav {
    top: 74px;
  }

  .hero {
    min-height: 670px;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-content {
    padding: 62px 0 82px;
  }

  h1 {
    font-size: 3.05rem;
  }

  section {
    padding: 66px 0;
  }

  .intro-photo img,
  .proof-photo img {
    height: 280px;
  }

  .service-grid,
  .sector-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .form-section summary {
    min-height: 58px;
    padding: 14px;
    font-size: 1rem;
  }

  .form-section > :not(summary) {
    margin: 14px;
  }

  .registration-form input,
  .registration-form textarea,
  .choice-grid label,
  .choice-stack label,
  .check-row {
    font-size: 16px;
  }

  .form-actions .btn {
    width: 100%;
  }

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

  .service-number {
    margin-bottom: 26px;
  }

  .director-card,
  .contact-form {
    padding: 24px;
  }

  .director-card::after {
    width: 72px;
    height: 72px;
  }

  .footer-grid {
    display: grid;
  }
}

@media print {
  .site-header,
  .hero,
  .intro,
  .services,
  .proof,
  .sectors,
  .directors,
  .registration-form,
  .cta,
  .site-footer {
    display: none;
  }

  .registration {
    padding: 0;
  }

  .registration-summary {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--paper);
  }

  .registration-summary[hidden] {
    display: none;
  }

  .registration-summary .btn {
    display: none;
  }
}
