:root {
  --ink: #17211f;
  --muted: #5d6966;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #d9ddd6;
  --teal: #0f766e;
  --teal-dark: #0c4f4b;
  --amber: #d9902e;
  --clay: #8b4f3b;
  --sage: #dfe8dd;
  --shadow: 0 18px 50px rgba(18, 31, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 18, 17, 0.84), rgba(11, 18, 17, 0.22));
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(50px, 5vw, 62px);
}

.logo-dark {
  display: none;
}

.site-header.scrolled .logo-white {
  display: none;
}

.site-header.scrolled .logo-dark {
  display: block;
}

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

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

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

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

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

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 72px) 72px;
  overflow: hidden;
  color: #fff;
}

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

.hero img {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 17, 15, 0.88) 0%, rgba(8, 17, 15, 0.68) 38%, rgba(8, 17, 15, 0.18) 74%),
    linear-gradient(0deg, rgba(8, 17, 15, 0.46), rgba(8, 17, 15, 0.08));
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding-top: 46px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5.7vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

p {
  line-height: 1.7;
}

.hero-copy {
  max-width: 650px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: rgba(255, 255, 255, 0.88);
}

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

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

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

.button.primary:hover {
  background: var(--teal-dark);
}

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

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button.secondary.dark {
  color: var(--teal-dark);
  border-color: var(--teal);
  background: transparent;
}

.button.secondary.dark:hover {
  color: #fff;
  background: var(--teal);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band div {
  min-height: 138px;
  padding: clamp(22px, 3vw, 38px);
  background: var(--panel);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.intro-band span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(66px, 9vw, 118px) clamp(20px, 6vw, 72px);
}

.split,
.partner-band,
.areas,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 92px);
}

.section-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.services,
.assurance,
.pathways {
  background: #fff;
}

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

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

.service-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card p,
.assurance-grid p,
.pathway-list p,
.areas p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.pathway-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pathway-list li {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pathway-list span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--clay);
  font-weight: 800;
}

.partner-band {
  color: #fff;
  background: var(--teal-dark);
}

.partner-band .eyebrow {
  color: #f2bb70;
}

.partner-panel {
  align-self: start;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.partner-panel ul {
  padding-left: 20px;
  margin: 0;
  line-height: 1.9;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.assurance-grid div {
  padding-top: 22px;
  border-top: 4px solid var(--amber);
}

.areas {
  align-items: center;
  background: var(--sage);
}

.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.area-list span {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
}

.contact {
  align-items: start;
  background: #fff;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus,
.nav-toggle:focus {
  outline: 3px solid rgba(217, 144, 46, 0.34);
  outline-offset: 2px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 72px);
  color: #fff;
  background: #111817;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  display: block;
  width: min(340px, 72vw);
  height: auto;
  margin-bottom: 8px;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.vacancies-page,
.apply-page {
  background: #fff;
}

.vacancy-hero,
.apply-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  padding: 150px clamp(20px, 6vw, 72px) clamp(52px, 8vw, 92px);
  background: var(--sage);
}

.vacancy-hero h1,
.apply-hero h1 {
  color: var(--ink);
}

.vacancy-hero p,
.apply-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.vacancy-update-card {
  padding: 24px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.vacancy-update-card span,
.vacancy-update-card strong {
  display: block;
}

.vacancy-update-card span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vacancy-update-card strong {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.vacancy-update-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.selected-room-card {
  padding: 24px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.selected-room-card span,
.selected-room-card strong {
  display: block;
}

.selected-room-card span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-room-card strong {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.vacancy-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.vacancy-results {
  padding: clamp(38px, 7vw, 72px) clamp(20px, 6vw, 72px) clamp(70px, 9vw, 118px);
  background: var(--paper);
}

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
  padding: clamp(38px, 7vw, 72px) clamp(20px, 6vw, 72px) clamp(70px, 9vw, 118px);
  background: var(--paper);
}

.application-form,
.send-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18, 31, 28, 0.08);
}

fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

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

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.check-row input {
  width: auto;
  margin-top: 4px;
}

.send-panel {
  position: sticky;
  top: 112px;
}

.send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vacancy-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.vacancy-results-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

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

.vacancy-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18, 31, 28, 0.08);
}

.vacancy-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
}

.status-pill.reserved {
  background: var(--clay);
}

.status-pill.unavailable {
  background: var(--muted);
}

.vacancy-card h3 {
  margin-bottom: 0;
  font-size: 1.34rem;
}

.vacancy-location {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.vacancy-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.vacancy-details div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.vacancy-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.vacancy-details dd {
  margin: 0;
  font-weight: 700;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--sage);
  font-size: 0.82rem;
  font-weight: 800;
}

.vacancy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.video-unavailable {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.video-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 17, 15, 0.78);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-panel {
  width: min(980px, 100%);
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.video-modal-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.video-close {
  float: right;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.video-frame {
  clear: both;
  overflow: hidden;
  border-radius: 8px;
  background: #111817;
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1050px) {
  .service-grid,
  .pathway-list,
  .assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .partner-band,
  .areas,
  .contact,
  .vacancy-hero,
  .apply-hero,
  .apply-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
  }

  .brand-logo {
    height: 50px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .hero {
    min-height: 90vh;
    padding-top: 104px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 17, 15, 0.9), rgba(8, 17, 15, 0.58)),
      linear-gradient(0deg, rgba(8, 17, 15, 0.46), rgba(8, 17, 15, 0.12));
  }

  .intro-band,
  .service-grid,
  .pathway-list,
  .assurance-grid,
  .area-list,
  .vacancy-controls,
  .vacancy-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .pathway-list li {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: start;
  }

  .vacancy-results-header {
    align-items: stretch;
    display: grid;
  }

  .vacancy-hero {
    padding-top: 118px;
  }

  .apply-hero {
    padding-top: 118px;
  }

  .send-panel {
    position: static;
  }

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

@media (max-width: 440px) {
  .brand-logo {
    height: 46px;
  }

  .button {
    width: 100%;
  }

  .vacancy-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
