/*
 * Keystone Recruitment – public site.
 * Style: warm editorial. Cream canvas, flat white and pastel cards (no shadows), one deep green
 * action colour, heavy headlines over relaxed body text. Cards 16px radius, buttons 8px.
 * Font: Source Sans 3 (SIL OFL, self-hosted in /static/fonts).
 */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/static/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/static/fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* action: the only saturated colour (white text on it is AAA) */
  --green: #17603a;
  --green-dark: #0f4a2c;
  --green-light: #52b862; /* logo green – decoration only */
  /* neutrals */
  --ink: #101a14;
  --grey: #3d423f;
  --muted: #676d69;
  --line: #e9e5de;
  --line-strong: #cfc9bf;
  --canvas: #fbfaf8;
  --card: #ffffff;
  /* pastel rotation – section and card identity, never for text or actions */
  --sage: #e4f0e6;
  --peach: #fef1e1;
  --butter: #fdf0d2;
  --lavender: #ece5f8;
  --sky: #def0f6;
  /* status */
  --warn-bg: #fff4dc;
  --warn-ink: #7a4b00;
  --ok-bg: #e4f0e6;
  /* shape and type */
  --r-card: 16px;
  --r-btn: 8px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --header-h: 76px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  font: 400 18px/1.56 var(--font);
  color: var(--grey);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--green-dark);
}
:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin-top: 1.4em;
}
h2:first-child,
.form-card h2,
.band h2,
.section-head h2 {
  margin-top: 0;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
p {
  margin: 0 0 1em;
}
strong {
  color: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.narrow {
  max-width: 780px;
}
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  margin-bottom: 0;
}
.muted {
  color: var(--muted);
}

/* ───────── header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand img {
  width: 152px;
  height: auto;
  mix-blend-mode: multiply; /* the logo file has a white background; blend it into the cream header */
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--r-btn);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.site-nav ul a:hover {
  color: var(--green);
}
.site-nav ul a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.staff-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--green);
  border-radius: var(--r-btn);
  color: var(--green);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}
.staff-link:hover {
  background: var(--sage);
  color: var(--green-dark);
}
.nav-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  font-size: 1.3rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem 1.5rem 1.5rem;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
  }
  .site-nav ul a {
    padding: 0.8rem 0.25rem;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav ul a[aria-current="page"] {
    text-decoration: none;
  }
  .nav-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .nav-actions .btn,
  .staff-link {
    justify-content: center;
    padding: 0.8rem 1rem;
  }
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: var(--r-btn);
  padding: 0.85rem 1.4rem;
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-outline {
  background: transparent;
  color: var(--green);
}
.btn-outline:hover {
  background: var(--sage);
  color: var(--green-dark);
}
.btn-small {
  padding: 0.5rem 0.95rem;
  font-size: 0.95rem;
}
.btn-block {
  width: 100%;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.link-arrow {
  font-weight: 700;
  color: var(--green);
}
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  text-decoration: none;
}

/* ───────── hero ───────── */
.hero {
  padding: 4.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  max-width: 14ch;
}
.hero .prose {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 36rem;
}
.hero-img {
  border-radius: var(--r-card);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
}
.path-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--sage);
  border-radius: var(--r-card);
  text-decoration: none;
  color: var(--grey);
  transition: transform 0.15s;
}
.path-card:nth-child(2) {
  background: var(--peach);
}
.path-card:hover {
  transform: translateY(-2px);
  color: var(--grey);
}
.path-label {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
}
.path-card .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
}
.page-hero {
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 {
  max-width: 18ch;
}
.page-hero .prose {
  max-width: 44rem;
  font-size: 1.25rem;
  line-height: 1.55;
}

/* in-page navigation on the home page */
.jump {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.jump .wrap {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.jump a {
  flex: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-btn);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.jump a:hover {
  background: var(--sage);
  color: var(--green-dark);
}

/* ───────── specialism sections (home) ───────── */
.spec {
  padding: 5.5rem 0;
}
.spec-reverse {
  background: var(--card);
}
.spec-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.spec-reverse .spec-text {
  order: 2;
}
.spec-reverse .spec-grid {
  grid-template-columns: 0.85fr 1.15fr;
}
.spec-text > .prose {
  font-size: 1.15rem;
}
.spec-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
.spec-cols > div {
  background: var(--sage);
  border-radius: var(--r-card);
  padding: 1.5rem;
}
.spec-cols > div:nth-child(2) {
  background: var(--butter);
}
.spec-reverse .spec-cols > div {
  background: var(--sky);
}
.spec-reverse .spec-cols > div:nth-child(2) {
  background: var(--lavender);
}
.spec-cols h3 {
  font-size: 1.15rem;
}
.spec-cols .prose {
  font-size: 1rem;
  line-height: 1.55;
}
.spec-cols .prose p:last-child,
.spec-cols .prose ul:last-child {
  margin-bottom: 0;
}
.spec-media {
  display: grid;
  gap: 1rem;
}
.spec-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-card);
}
.spec-media img:nth-child(2) {
  width: 72%;
  justify-self: end;
}

/* ───────── layout helpers ───────── */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}
.two-col > div > .rounded {
  margin-top: 1.5rem;
}
.stack {
  display: grid;
  gap: 1rem;
}
.rounded {
  border-radius: var(--r-card);
  object-fit: cover;
  width: 100%;
}
.band {
  background: var(--card);
  padding: 5rem 0;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.steps li {
  counter-increment: step;
  background: var(--sage);
  border-radius: var(--r-card);
  padding: 2rem;
}
.steps li:nth-child(2) {
  background: var(--peach);
}
.steps li:nth-child(3) {
  background: var(--lavender);
}
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.steps .prose {
  font-size: 1rem;
}
.steps .prose p:last-child {
  margin-bottom: 0;
}
.countries {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 1000px) {
  .countries {
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* seven countries in one row */
  }
}
@media (max-width: 560px) {
  .countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.countries li {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
}
.countries img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.countries span {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-btn);
  background: rgba(251, 250, 248, 0.94);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.director {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--peach);
  border-radius: var(--r-card);
  padding: 2rem;
}
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}
.cta-band {
  padding: 1rem 0 5rem;
}
.cta-band .cta-inner {
  background: var(--green);
  border-radius: var(--r-card);
  padding: 3rem;
  color: #fff;
}
.cta-band h2,
.cta-band p {
  color: #fff;
  margin-top: 0;
}
.cta-band p {
  opacity: 0.9;
  margin-bottom: 0;
  font-size: 1.15rem;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band .cta-actions {
  margin-top: 0;
}
.cta-band .btn {
  background: #fff;
  color: var(--green-dark);
  border-color: #fff;
}
.cta-band .btn:hover {
  background: var(--sage);
}
.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ───────── prose ───────── */
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose li::marker {
  color: var(--green);
}

/* ───────── jobs ───────── */
.job-list {
  display: grid;
  gap: 0.75rem;
}
.job-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem 1.75rem;
  background: var(--card);
  transition: border-color 0.15s;
}
.job-card:hover {
  border-color: var(--green);
}
.job-card h3 {
  margin-bottom: 0.5rem;
}
.job-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.job-card:hover h3 a {
  color: var(--green);
}
.job-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.job-card p:last-child {
  margin-bottom: 0;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.job-meta span {
  background: var(--sage);
  color: var(--green-dark);
  border-radius: var(--r-card);
  padding: 0.15rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: capitalize;
}
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filters a {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  padding: 0.4rem 0.95rem;
  text-decoration: none;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.filters a:hover {
  border-color: var(--green);
  color: var(--green);
}
.filters a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.empty {
  background: var(--butter);
  border-radius: var(--r-card);
  padding: 1.75rem 2rem;
}
.empty p:last-child {
  margin-bottom: 0;
}

/* ───────── forms ───────── */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 2rem;
}
.form-card > .prose,
.form-card > .muted {
  margin-bottom: 1.25rem;
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="file"],
.field select,
.field textarea,
.chat-ui input,
.chat-ui textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--card);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-ui input:focus,
.chat-ui textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(23, 96, 58, 0.18);
}
.field [aria-invalid="true"] {
  border-color: #b42318;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.checkbox input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--green);
}
.checkbox label {
  font-weight: 400;
  font-size: 0.93rem;
  color: var(--grey);
}
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 1rem;
}
.form-status:empty {
  display: none;
}
.notice-ok,
.form-status.ok {
  background: var(--ok-bg);
  color: var(--ink);
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-btn);
}
.notice-warn,
.form-status.error,
.draft-banner {
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-btn);
}
.cf-turnstile {
  margin: 0.5rem 0 1rem;
}

/* ───────── contact ───────── */
.contact-quick {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.contact-quick a {
  font-weight: 700;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
#chat.form-card {
  background: var(--sage);
  border-color: transparent;
}

/* ───────── chat (contact page + floating panel on every other page) ───────── */
.chat-ui {
  display: flex;
  flex-direction: column;
}
.chat-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}
.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22a052;
  box-shadow: 0 0 0 3px rgba(34, 160, 82, 0.2);
}
.chat-log {
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--canvas);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
#chat .chat-log {
  background: var(--card);
  border-color: transparent;
}
.chat-msg {
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.98rem;
  line-height: 1.45;
}
.chat-msg.visitor {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.staff {
  align-self: flex-start;
  background: var(--sage);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-msg small {
  display: block;
  opacity: 0.75;
  font-size: 0.78rem;
}
.chat-note {
  align-self: center;
  max-width: 92%;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--butter);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
}
.chat-compose {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.chat-compose textarea {
  flex: 1;
  min-height: 48px;
  resize: vertical;
}
.chat-foot {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.chat-foot a {
  color: var(--muted);
}
.chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  background: var(--green);
  color: #fff;
  font: 700 1rem/1 var(--font);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 26, 20, 0.22);
}
.chat-fab:hover {
  background: var(--green-dark);
}
.chat-fab .chat-dot {
  background: #9ef0bb;
  box-shadow: 0 0 0 3px rgba(158, 240, 187, 0.3);
}
.chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 61;
  width: min(400px, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 18px 48px rgba(16, 26, 20, 0.16); /* overlay only – page cards stay flat */
  padding: 1.5rem;
}
.chat-panel[hidden] {
  display: none;
}
.chat-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.chat-panel-head h2 {
  font-size: 1.35rem;
  margin: 0;
}
.chat-close {
  border: 0;
  background: var(--canvas);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--grey);
}
.chat-close:hover {
  background: var(--sage);
}
.chat-panel .chat-log {
  max-height: 300px;
}

/* ───────── footer ───────── */
.site-footer {
  background: var(--ink);
  color: #c9d1cc;
  padding: 4rem 0 5.5rem; /* room for the floating chat button */
  font-size: 1rem;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}
.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0;
  margin: 0 0 0.85rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.45rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo {
  background: #fff;
  border-radius: var(--r-btn);
  padding: 0.45rem 0.65rem;
  width: 152px;
  margin-bottom: 1rem;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #2a352f;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: #a3aea7;
}
.footer-legal a {
  color: #c9d1cc;
}
.footer-legal p {
  margin: 0;
}
address {
  font-style: normal;
}

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .spec-grid,
  .spec-reverse .spec-grid,
  .contact-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .spec-reverse .spec-text {
    order: 0;
  }
  .hero-img {
    max-width: 460px;
    aspect-ratio: 4 / 3;
  }
  .hero-grid,
  .two-col,
  .spec-grid {
    gap: 2.5rem;
  }
  .spec-media {
    grid-template-columns: 1fr 1fr;
  }
  .spec-media img:nth-child(2) {
    width: 100%;
  }
  .cta-band .cta-inner {
    padding: 2rem;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .wrap {
    padding: 0 1rem;
  }
  .paths,
  .field-row,
  .spec-cols {
    grid-template-columns: 1fr;
  }
  .director {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 1.5rem;
  }
  .form-card {
    padding: 1.25rem;
  }
  .section,
  .spec,
  .band {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }
  .hero,
  .page-hero {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }
  .steps li {
    padding: 1.5rem;
  }
  .cta-band .cta-inner {
    padding: 1.5rem;
  }
  .chat-fab .label {
    display: none;
  }
  .chat-fab {
    padding: 0.95rem;
  }
  .chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 4.75rem;
  }
}
@media print {
  .site-header,
  .site-footer,
  .chat-fab,
  .chat-panel,
  .nav-toggle {
    display: none;
  }
}
