/* ============================================================
   BLUESTONE LABOUR GROUP
   Site stylesheet, September 2026 rebuild.

   Brand colours are fixed: navy #0E2040 and gold #C4922A.
   Headings: Barlow Condensed. Body: Inter with the system stack
   as fallback. Fonts are loaded from the page head, not here.

   Sections in this file:
     1. Tokens and reset
     2. Type
     3. Buttons and links
     4. Navigation
     5. Hero (home) and page hero (inner pages)
     6. Section layout
     7. Components
     8. Forms
     9. Footer and mobile bar
    10. Legacy class support (older page components)
    11. Motion
    12. Responsive
   ============================================================ */

/* ---------- 1. Tokens and reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0E2040;
  --navy-deep: #091526;
  --navy-soft: #16294D;
  --gold: #C4922A;
  --gold-deep: #A87A1F;
  --gold-tint: #F7EEDD;

  --ink: #14213A;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: rgba(14, 32, 64, 0.10);
  --line-strong: rgba(14, 32, 64, 0.18);
  --surface: #F6F5F1;
  --surface-2: #EDEBE5;
  --white: #FFFFFF;

  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-2: rgba(255, 255, 255, 0.68);
  --on-dark-3: rgba(255, 255, 255, 0.46);
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 980px;

  --shadow-1: 0 1px 2px rgba(14, 32, 64, 0.06), 0 8px 24px rgba(14, 32, 64, 0.06);
  --shadow-2: 0 2px 6px rgba(14, 32, 64, 0.08), 0 24px 48px rgba(14, 32, 64, 0.10);

  --nav-h: 60px;
  --container: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ---------- 2. Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.2vw, 5rem); font-weight: 800; letter-spacing: -0.012em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p { color: var(--ink-2); }
p + p { margin-top: 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--ink-3); }

.eyebrow, .section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.section-dark .eyebrow, .section-dark .section-label { color: var(--gold); }

.prose { max-width: 680px; }
.prose p { font-size: 1.05rem; line-height: 1.7; }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-deep); }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary, .prose a.btn-primary:hover { color: var(--white); }
.prose .btn { margin-top: 8px; }
.prose ul { margin: 1em 0 1em 1.2em; list-style: disc; color: var(--ink-2); }
.prose li + li { margin-top: 0.4em; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s var(--ease);
}
.text-link::after { content: '\203A'; font-size: 1.2em; line-height: 1; color: var(--gold); transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--gold-deep); }
.text-link:hover::after { transform: translateX(3px); }
.section-dark .text-link { color: var(--on-dark); }
.section-dark .text-link:hover { color: var(--gold); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); box-shadow: 0 6px 18px rgba(14, 32, 64, 0.22); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D19F35; box-shadow: 0 6px 18px rgba(196, 146, 42, 0.3); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); }
.btn-secondary { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--surface); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: rgba(196, 146, 42, 0.6); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.section-dark .btn-primary { background: var(--gold); color: var(--navy); }
.section-dark .btn-primary:hover { background: #D19F35; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- 4. Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* The blur lives on a pseudo element so the navbar itself does not become
   the containing block for the fixed mobile menu panel. */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 32, 64, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark-2);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-phone { margin-left: 8px; color: var(--on-dark) !important; font-weight: 600 !important; }
.nav-cta { margin-left: 8px; display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 9px 16px; font-size: 0.88rem; }
.nav-cta .btn-primary { background: var(--gold); color: var(--navy); }
.nav-cta .btn-primary:hover { background: #D19F35; }
.nav-cta .btn-outline-gold { border-color: rgba(196, 146, 42, 0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  z-index: 1001;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Heroes ---------- */
.hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  background: var(--surface);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 520px; margin-bottom: 32px; }
.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 5 / 4;
  background: var(--navy);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-note {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(14, 32, 64, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--on-dark);
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  max-width: 300px;
}
.hero-note strong { display: block; color: var(--white); font-weight: 600; }

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact-row > div { padding: 22px 24px 22px 0; }
.fact-row > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.fact-row .k { display: block; font-size: 0.85rem; color: var(--ink-3); margin-bottom: 4px; }
.fact-row .v a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.fact-row .v a:hover { color: var(--gold-deep); }
.fact-row .note { display: block; font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.hero-note a { color: var(--gold); }
.fact-row .v { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.15; }

.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 820px; margin-bottom: 16px; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero p { font-size: 1.15rem; max-width: 620px; color: var(--ink-2); }
.page-hero .btn-row { margin-top: 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span { color: var(--ink-3); }
.breadcrumb .current { color: var(--navy); }

/* ---------- 6. Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-light, .section-alt { background: var(--surface); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--on-dark-2); }
.section-dark .lead { color: var(--on-dark-2); }
.section-dark .prose a { color: var(--white); }
.section-dark .prose p { color: var(--on-dark-2); }
.section-dark .prose ul { color: var(--on-dark-2); }
.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header .section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); }
.section-dark .section-subtitle { color: var(--on-dark-2); }

.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.two-col.center { align-items: center; }
.two-col.flip > :first-child { order: 2; }
.sticky-col { position: sticky; top: calc(var(--nav-h) + 32px); }

.media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.tall { aspect-ratio: 4 / 5; }
.media.wide { aspect-ratio: 16 / 10; }
.media.square { aspect-ratio: 1; }

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

/* ---------- 7. Components ---------- */

/* Role list: bordered rows, three columns */
.role-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.role-group h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.role-group a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  transition: color 0.2s var(--ease);
}
.role-group a small { grid-column: 1; display: block; font-family: var(--font-body); font-size: 0.88rem; font-weight: 400; line-height: 1.4; color: var(--ink-3); margin-top: 3px; }
.role-group a::after { content: '\203A'; grid-column: 2; grid-row: 1 / span 2; color: var(--gold); font-size: 1.3em; line-height: 0.8; padding-left: 8px; transition: transform 0.2s var(--ease); }
.role-group a:hover { color: var(--gold-deep); }
.role-group a:hover::after { transform: translateX(3px); }

/* Card grid, used for roles and areas on the services page */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px 24px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.section-light .card, .section-alt .card { border-color: transparent; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.card .text-link { margin-top: 16px; font-size: 0.92rem; }
.section-dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section-dark .card h3 { color: var(--white); }
.section-dark .card p { color: var(--on-dark-2); }

/* Steps, large numerals with hairlines */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { padding-top: 20px; border-top: 1px solid var(--line-dark); }
.step .num { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { font-size: 0.98rem; line-height: 1.55; }
.section:not(.section-dark) .step { border-top-color: var(--line); }

/* Spec list, label and value rows (compliance checks, what you need) */
.spec-list { border-top: 1px solid var(--line); }
.spec-list > div, .spec-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list .k { font-weight: 600; color: var(--navy); }
.spec-list .v { color: var(--ink-2); font-size: 0.98rem; }
.section-dark .spec-list { border-color: var(--line-dark); }
.section-dark .spec-list > div, .section-dark .spec-list > li { border-color: var(--line-dark); }
.section-dark .spec-list .k { color: var(--white); }
.section-dark .spec-list .v { color: var(--on-dark-2); }

/* Tick list */
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2); line-height: 1.55; }
.tick-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%230E2040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.section-dark .tick-list li { color: var(--on-dark-2); }

/* Tiles, small boxes on dark sections (tickets, suburbs) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tile { padding: 16px 18px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); }
.tile .t { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.tile .d { font-size: 0.85rem; color: var(--on-dark-3); margin-top: 2px; }
.section:not(.section-dark) .tile { background: var(--white); border-color: var(--line); }
.section:not(.section-dark) .tile .t { color: var(--navy); }
.section:not(.section-dark) .tile .d { color: var(--ink-3); }

/* Engagement comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px 30px; }
.section-light .compare > div { border-color: transparent; }
.compare h3 { margin-bottom: 6px; }
.compare .sub { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 20px; }
.compare ul { border-top: 1px solid var(--line); }
.compare li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; color: var(--ink-2); }

/* Area links */
.area-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.area-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy);
}
.area-links a::after { content: '\203A'; color: var(--gold); font-size: 1.2em; }
.area-links a:hover { color: var(--gold-deep); }
.section-dark .area-links a { color: var(--on-dark); border-color: var(--line-dark); }

/* Dual panel, employers and workers */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dual > div { border-radius: var(--r-lg); padding: 48px 44px; }
.dual .employers { background: var(--navy); color: var(--on-dark); }
.dual .employers h3, .dual .employers h2 { color: var(--white); }
.dual .employers p { color: var(--on-dark-2); }
.dual .employers .tick-list li { color: var(--on-dark-2); }
.dual .workers { background: var(--white); border: 1px solid var(--line); }
.dual h3 { font-size: 2rem; margin-bottom: 10px; }
.dual p { margin-bottom: 20px; }
.dual .tick-list { margin-bottom: 28px; }

/* FAQ */
.faq-grid { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  user-select: none;
}
.faq-question:hover { color: var(--gold-deep); }
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--gold); fill: none; stroke-width: 2; transition: transform 0.25s var(--ease); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { font-size: 1rem; line-height: 1.65; padding-bottom: 24px; max-width: 700px; }
.section-dark .faq-item, .section-dark .faq-item:first-child { border-color: var(--line-dark); }
.section-dark .faq-question { color: var(--white); }

/* CTA banner */
.cta-banner { background: var(--navy); padding: clamp(72px, 9vw, 112px) 0; }
.cta-content { max-width: 720px; }
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { font-size: 1.15rem; color: var(--on-dark-2); margin-bottom: 32px; max-width: 600px; }
.cta-content p a { color: var(--gold); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.cta-banner .btn-primary { background: var(--gold); color: var(--navy); }
.cta-banner .btn-primary:hover { background: #D19F35; }

/* Contact info */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-list { border-top: 1px solid var(--line); margin-top: 28px; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list .k { font-size: 0.85rem; color: var(--ink-3); padding-top: 3px; }
.contact-list .v { font-weight: 500; color: var(--navy); }
.contact-list .v a { color: var(--navy); }
.contact-list .v a:hover { color: var(--gold-deep); }
.contact-list .v .small { display: block; font-weight: 400; margin-top: 2px; }

/* Notice box */
.note-box { background: var(--surface); border-radius: var(--r-md); padding: 24px 26px; }
.note-box h4 { margin-bottom: 10px; }
.note-box ul li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); }
.note-box ul li:first-child { border-top: 0; }

/* Related links, two columns */
.link-cols { columns: 2; column-gap: 40px; }
.link-cols li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-cols a { color: var(--navy); font-weight: 500; }
.link-cols a:hover { color: var(--gold-deep); }

/* ---------- 8. Forms ---------- */
form.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 34px; box-shadow: var(--shadow-1); }
.section-light form.panel, .section-alt form.panel { border-color: transparent; }
form.panel h3 { margin-bottom: 6px; }
form.panel .form-intro { font-size: 0.95rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%236B7280' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 32, 64, 0.10); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { font-size: 0.8rem; color: var(--ink-3); margin-top: 14px; text-align: center; }
.form-foot a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-done { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--gold-tint); color: var(--navy); font-size: 0.95rem; font-weight: 500; }
.btn.is-error { background: #B3261E; color: var(--white); white-space: normal; }
.hp { position: absolute; left: -9999px; }
form .btn-primary.btn-block { margin-top: 6px; }

/* ---------- 9. Footer and mobile bar ---------- */
.footer { background: var(--navy-deep); color: var(--on-dark-3); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand svg { height: 34px; width: auto; }
.footer-brand p { color: var(--on-dark-3); font-size: 0.9rem; line-height: 1.55; margin-top: 18px; max-width: 300px; }
.footer-heading { font-size: 0.95rem; font-weight: 600; color: var(--on-dark); margin-bottom: 14px; }
.footer-links li { margin-bottom: 9px; color: var(--on-dark-3); font-size: 0.9rem; }
.footer-links a { font-size: 0.9rem; color: var(--on-dark-3); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; font-size: 0.8rem; color: var(--on-dark-3); }
.footer-bottom a { color: var(--on-dark-2); }
.footer-bottom a:hover { color: var(--white); }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 32, 64, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 13px 12px; font-size: 0.92rem; }
.mobile-bar .btn-secondary { color: var(--white); }

/* ---------- 10. Legacy class support ----------
   The role, location and article pages were built from an
   earlier component set. These rules restyle those classes so
   every page matches the new system without markup changes. */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.about-image { position: relative; border-radius: var(--r-lg); overflow: hidden; align-self: stretch; min-height: 360px; background: var(--surface-2); }
.about-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.value-item { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
.section-dark .value-item { border-top-color: var(--line-dark); }
.value-icon { display: none; }
.value-item h4 { font-size: 1.15rem; margin-bottom: 4px; }
.value-item h4 a { color: inherit; }
.value-item h4 a:hover { color: var(--gold); }
.value-item p { font-size: 0.92rem; line-height: 1.5; margin: 0; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 28px 26px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.section-light .service-card, .section-alt .service-card { border-color: transparent; }
a.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.service-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; line-height: 1.55; }
.service-icon { display: none; }
.service-card > span[style] { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 16px !important; font-size: 0.92rem !important; font-weight: 600 !important; color: var(--navy) !important; }
.service-card > span[style]::after { content: '\203A'; color: var(--gold); font-size: 1.2em; line-height: 1; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.why-card { display: block; padding: 28px 0 0; border-top: 1px solid var(--line-dark); }
.why-number { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.why-card h4 { font-size: 1.35rem; color: var(--white); margin-bottom: 8px; }
.why-card p { font-size: 0.98rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { padding-top: 20px; border-top: 1px solid var(--line); }
.process-number { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--gold); margin-bottom: 16px; }
.process-step h4 { font-size: 1.35rem; margin-bottom: 8px; }
.process-step p { font-size: 0.95rem; }

.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-card { position: relative; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.industry-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 21, 38, 0.9) 0%, rgba(9, 21, 38, 0.2) 55%, transparent 100%); }
.industry-card-content { position: relative; padding: 24px; }
.industry-card svg { display: none; }
.industry-card h4 { color: var(--white); font-size: 1.5rem; margin-bottom: 4px; }
.industry-card p { color: var(--on-dark-2); font-size: 0.88rem; line-height: 1.45; }

.coverage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.coverage-item { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.coverage-item svg { display: none; }

.compliance-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.compliance-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
.compliance-item svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; }
.split-image { background-size: cover; background-position: center; min-height: 420px; }
.split-content { display: flex; flex-direction: column; justify-content: center; padding: 72px 72px; background: var(--surface); }
.split-section.split-reverse .split-content { order: -1; }

.compliance-checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.checklist-item { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.checklist-item svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; }

.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dual-cta-card { border-radius: var(--r-lg); padding: 48px 44px; }
.dual-cta-card.employers { background: var(--navy); color: var(--on-dark); }
.dual-cta-card.employers h3 { color: var(--white); }
.dual-cta-card.employers p, .dual-cta-card.employers li { color: var(--on-dark-2); }
.dual-cta-card.workers { background: var(--white); border: 1px solid var(--line); }
.dual-cta-card h3 { font-size: 2rem; margin-bottom: 10px; }
.dual-cta-card p { margin-bottom: 20px; }
.dual-cta-list { margin-bottom: 28px; }
.dual-cta-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.95rem; }
.dual-cta-list li svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; }

.contact-info-card { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-icon { display: none; }
.contact-info-card h4 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-3); }
.contact-info-card p { color: var(--navy); font-weight: 500; }

.stats-strip, .hero-stats, .hero-badge, .hero-grid-pattern, .hero-accent-line { display: none !important; }

/* ---------- 11. Motion ---------- */
.fade-in, .fade-in-left, .fade-in-right { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: none; }
.stagger-children > * { transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, .fade-in-left, .fade-in-right { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1024px) {
  .role-groups { grid-template-columns: 1fr 1fr; }
  .card-grid, .card-grid.four, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .fact-row { grid-template-columns: repeat(2, 1fr); }
  .fact-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact-row > div:nth-child(1), .fact-row > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .area-links, .coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .two-col, .about-grid, .contact-grid { gap: 40px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .hero-grid, .two-col, .about-grid, .contact-grid, .compare, .dual, .dual-cta, .split-section { grid-template-columns: 1fr; }
  .two-col.flip > :first-child { order: 0; }
  .hero .lead { max-width: none; }
  .hero-media { aspect-ratio: 4 / 3; }
  .sticky-col { position: static; }
  .role-groups { grid-template-columns: 1fr; gap: 20px; }
  .steps, .process-grid { grid-template-columns: 1fr; gap: 20px; }
  .area-links, .coverage-grid { grid-template-columns: 1fr 1fr; }
  .split-content { padding: 48px 24px; }
  .split-image { min-height: 280px; }
  .about-values { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 4 / 3; min-height: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .spec-list > div, .spec-list > li { grid-template-columns: 1fr; gap: 4px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .link-cols { columns: 1; }
  .dual > div, .dual-cta-card { padding: 36px 28px; }
  form.panel { padding: 28px 22px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 40px;
    gap: 0;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--white); padding: 14px 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav-links a.active { color: var(--gold); }
  .nav-phone { margin-left: 0; }
  .nav-cta { margin: 24px 0 0; flex-direction: column; gap: 12px; }
  .nav-cta .btn { width: 100%; padding: 16px; font-size: 1rem; }

  .mobile-bar { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .card-grid, .card-grid.four, .services-grid, .industries-grid { grid-template-columns: 1fr; }
  .area-links, .coverage-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr; }
  .fact-row > div { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .fact-row > div:last-child { border-bottom: 0; }
  .btn-row .btn, .cta-buttons .btn { width: 100%; }
  .hero-media .hero-note { display: none; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; }
}


/* ---------- 13. Floating call button and chat widget (restored 18 Sep 2026) ----------
   Desktop only. On screens narrow enough for the .mobile-bar (max-width: 820px)
   these are hidden so they do not stack on top of that bar; the mobile bar
   already carries Call and Request workers on small screens. */
.floating-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(196, 146, 42, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.floating-call:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(196, 146, 42, 0.6); }
.floating-call svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 2; }

.msg-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 32, 64, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.msg-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(14, 32, 64, 0.7); }
.msg-toggle svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 2; }

.msg-panel {
  position: fixed;
  bottom: 100px;
  left: 28px;
  z-index: 1001;
  width: 360px;
  max-height: 480px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.msg-panel.open { display: flex; }
.msg-panel-header { background: var(--navy); padding: 20px; color: var(--white); }
.msg-panel-header h4 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.msg-panel-header p { font-size: 0.85rem; color: var(--on-dark-2); margin: 0; }
.msg-panel-body { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 280px; }
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; word-wrap: break-word; }
.chat-bubble.bot { background: var(--surface); color: var(--navy); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--gold); color: var(--navy); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-bubble a { color: var(--gold-deep); text-decoration: underline; font-weight: 600; }
.chat-bubble.bot a { color: var(--gold-deep); }

.typing-indicator span { display: inline-block; width: 8px; height: 8px; margin: 0 2px; background: var(--ink-3); border-radius: 50%; animation: typingDot 1.2s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--white); }
.chat-input-row input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  font: inherit; font-size: 0.9rem; color: var(--navy); outline: none;
  transition: border-color 0.2s var(--ease); box-sizing: border-box;
}
.chat-input-row input:focus { border-color: var(--gold); }
.chat-input-row button {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s var(--ease);
}
.chat-input-row button:hover { background: #D19F35; }
.chat-input-row button svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 2; }

.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-quick-btn {
  padding: 7px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white);
  color: var(--navy); font-size: 0.82rem; font: inherit; cursor: pointer; transition: all 0.2s var(--ease);
}
.chat-quick-btn:hover { border-color: var(--gold); background: var(--gold-tint); }

.chat-form-bubble { padding: 10px 12px !important; }
.chat-form { display: flex; flex-direction: column; gap: 10px; }
.chat-form label { display: flex; flex-direction: column; font-size: 0.8rem; font-weight: 600; color: var(--navy); gap: 3px; }
.chat-form input, .chat-form select, .chat-form textarea {
  padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 0.85rem;
  color: var(--navy); outline: none; transition: border-color 0.2s var(--ease); background: var(--white); box-sizing: border-box; width: 100%;
}
.chat-form input:focus, .chat-form select:focus, .chat-form textarea:focus { border-color: var(--gold); }
.chat-form textarea { resize: vertical; }
.chat-form-submit {
  padding: 11px 16px; background: var(--gold); color: var(--navy); border: none; border-radius: var(--r-pill);
  font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.2s var(--ease); margin-top: 4px;
}
.chat-form-submit:hover { background: #D19F35; }
.chat-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-form-success { text-align: center; padding: 16px 8px; color: #2E7D32; font-weight: 600; font-size: 0.9rem; }

@media (max-width: 820px) {
  .floating-call, .msg-toggle, .msg-panel { display: none !important; }
}
@media (max-width: 480px) {
  .msg-panel { left: 12px; right: 12px; width: auto; bottom: 96px; }
}

/* Shown at the top of the employer request form. A worker who lands on the
   employers page and starts typing has no other prompt that they are on the
   wrong one, and the company field is the only thing that would have told
   them, three fields in. */
.form-redirect {
  margin: 0 0 20px;
  padding: 10px 14px;
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.form-redirect a { color: var(--navy); font-weight: 600; }
