:root {
  --ink: #14231f;
  --ink-soft: #52615c;
  --forest: #103f32;
  --forest-deep: #071f19;
  --sage: #dce8e2;
  --paper: #f4f3ee;
  --white: #ffffff;
  --line: #cfd8d3;
  --burgundy: #65293b;
  --error: #a22b35;
  --focus: #f3bf5a;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

strong,
b,
h1,
h2,
h3,
h4 {
  font-weight: 500;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--focus);
}

.skip-link:focus {
  top: 12px;
}

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

.header-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: var(--forest);
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}

.brand strong,
.brand small {
  display: block;
  font-size: 20px;
  line-height: 1.18;
}

.brand small {
  color: var(--ink-soft);
  font-weight: 400;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.header-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.language-select {
  min-height: 48px;
  min-width: 136px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 38px 8px 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 400;
}

.primary-nav a,
.text-link,
.site-footer a {
  color: var(--forest);
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(790px, calc(100vh - 88px));
  align-items: end;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--white);
}

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

.hero-image {
  z-index: -2;
  background: url("../assets/ez-employers-team.jpg") 50% 46% / cover no-repeat;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 22, 17, 0.94) 0%, rgba(4, 22, 17, 0.82) 52%, rgba(4, 22, 17, 0.62) 100%);
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.hero-inner {
  padding: 96px 0 70px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #6c8177;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: #bfd2c8;
}

h1,
h2,
h3,
h4,
p,
li,
a,
label {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  font-size: 70px;
}

h2 {
  max-width: 850px;
  font-size: 44px;
}

h3 {
  font-size: 32px;
}

h4 {
  margin-top: 32px;
  font-size: 24px;
}

.hero-copy {
  max-width: 830px;
  margin-top: 28px;
  color: #e3ece8;
}

.hero-copy p {
  margin: 12px 0 0;
}

.button-row,
.final-actions,
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 13px 18px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button-primary,
.button-light {
  background: var(--white);
  color: var(--forest-deep);
}

.button-secondary,
.button-outline-light {
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.boundary-line {
  max-width: 840px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #d2dfd9;
}

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

.section-inner {
  padding: 92px 0;
}

.split-layout,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 76px;
}

.body-copy p,
.section-lead,
.form-intro > p,
.final-cta p {
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.line-list,
.quiet-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.line-list li,
.quiet-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.routes-section,
.overview-section {
  background: var(--white);
}

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

.route-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.route-heading,
.route-body,
.route-card > .button,
.route-actions {
  margin-right: 26px;
  margin-left: 26px;
}

.route-heading {
  min-height: 258px;
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--line);
}

.route-number {
  display: block;
  margin-bottom: 28px;
  color: var(--forest);
  font-size: 30px;
  font-weight: 500;
}

.route-heading .eyebrow {
  margin-bottom: 12px;
}

.route-body {
  flex: 1;
  padding: 8px 0 28px;
}

.route-body p {
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.route-audience {
  color: var(--ink) !important;
}

.two-column-list {
  columns: 2;
  column-gap: 24px;
}

.two-column-list li {
  break-inside: avoid;
}

.boundary-box {
  margin-top: 30px;
  padding: 20px;
  border-left: 4px solid var(--forest);
  background: var(--sage);
}

.boundary-box p:first-child {
  margin-top: 0;
  color: var(--ink);
}

.route-card > .button,
.route-actions {
  margin-top: 0;
  margin-bottom: 28px;
}

.button-route {
  background: var(--forest);
  color: var(--white);
}

.route-actions {
  align-items: center;
}

.text-link {
  font-weight: 500;
}

.statement-line {
  margin-top: 30px !important;
  padding: 24px 0 0 24px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  color: var(--ink) !important;
  font-weight: 500;
}

.start-section {
  background: var(--sage);
}

.enquiry-section {
  background: var(--forest-deep);
  color: var(--white);
}

.enquiry-section .eyebrow {
  color: #b9cec4;
}

.enquiry-section .form-intro > p,
.enquiry-section .next-steps {
  color: #d8e4de;
}

.next-steps {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.next-steps ol,
.success-state ol {
  margin: 20px 0 0;
  padding-left: 28px;
}

.next-steps li,
.success-state li {
  margin-top: 10px;
}

.form-panel {
  align-self: start;
  border-radius: 6px;
  padding: 30px;
  background: var(--white);
  color: var(--ink);
}

.field-grid {
  display: grid;
  gap: 16px;
}

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

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #97a7a0;
  border-radius: 3px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
}

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

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.helper-text,
.privacy-copy {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
}

.field-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 22px 0 0;
}

.consent-field input {
  width: 24px;
  height: 24px;
  margin: 4px 0 0;
  accent-color: var(--forest);
}

.consent-field-optional {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.privacy-copy a {
  color: var(--forest);
}

.button-submit {
  width: 100%;
  margin-top: 26px;
  background: var(--forest);
  color: var(--white);
}

.button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.validation-summary,
.form-failure {
  margin-bottom: 24px;
  padding: 18px;
  border-left: 4px solid var(--error);
  background: #fff0f1;
  color: #711c24;
}

.validation-summary h3,
.form-failure h3 {
  font-size: 24px;
}

.form-failure {
  margin-top: 22px;
  margin-bottom: 0;
}

.form-failure p {
  margin: 10px 0 0;
}

.success-state {
  min-height: 420px;
}

.success-state p {
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.success-reference {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink) !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.success-note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.success-state .button {
  margin-top: 28px;
}

.final-cta {
  background: var(--burgundy);
  color: var(--white);
}

.final-cta .section-inner {
  padding-top: 82px;
  padding-bottom: 82px;
}

.final-cta p {
  max-width: 880px;
  color: #f0dfe5;
}

.final-actions {
  margin-top: 32px;
}

.site-footer {
  padding: 42px 0;
  color: var(--ink-soft);
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 8px;
}

.footer-boundary {
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 760px;
  }

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

  .route-heading {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 38px;
  }

  .split-layout,
  .form-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .two-column-list {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .brand {
    align-items: flex-start;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px 18px;
  }

  .header-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .language-select {
    min-width: 112px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-image {
    background-position: 63% center;
  }

  .hero-inner {
    padding: 76px 0 46px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 28px;
  }

  .section-inner {
    padding: 64px 0;
  }

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

  .route-heading,
  .route-body,
  .route-card > .button,
  .route-actions {
    margin-right: 18px;
    margin-left: 18px;
  }

  .route-card > .button {
    width: auto;
  }

  .route-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-panel {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
