/* HealthcareRecruitment.ca design system. Neumorphism-inspired surfaces, solid high-contrast CTAs. */
:root {
  color-scheme: light;
  --brand: #2F5FE3;
  --brand-dark: #1e3bbf;
  --brand-tint: rgba(47, 95, 227, 0.08);
  --ink: #0b1220;
  --muted: #475569;
  --border: #e5e7eb;
  --surface: #eef1f8;
  --bg: #ffffff;
  --ok: #15803d;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-ink: #78350f;
  --shadow-light: rgba(255, 255, 255, 0.85);
  --shadow-dark: rgba(163, 177, 198, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid rgba(47, 95, 227, 0.55); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.005em; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--muted); font-size: 17px; }
ul, ol { color: var(--muted); font-size: 17px; padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 10000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; margin: 0 0 22px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: #94a3b8; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 48px) 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(47, 95, 227, 0.07) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-center { text-align: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .cta-row { justify-content: center; }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(47, 95, 227, 0.1); color: var(--brand);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 640px; margin-bottom: 26px; }
.hero-aside { display: grid; gap: 16px; }
.trust-line { font-size: 14px; color: var(--muted); margin-top: 18px; }
.trust-line strong { color: var(--ink); }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.btn-link::after { content: " \2192"; }
.btn-link:hover { text-decoration: underline; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-tint { background: linear-gradient(180deg, rgba(47, 95, 227, 0.05), #fff); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 18px; margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.split.reverse > :first-child { order: 2; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: -6px -6px 14px var(--shadow-light), 8px 8px 20px var(--shadow-dark);
}
.section-alt .card { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p, .card li { font-size: 16px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s ease; }
a.card:hover { transform: translateY(-3px); }
a.card h3 { color: var(--brand); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.card-cta { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--brand); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
.steps.cols { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li {
  counter-increment: step; margin: 0; position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 22px 22px 70px; font-size: 16px;
}
.steps.cols li { padding: 62px 22px 22px; }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; margin-bottom: 4px; font-size: 17px; }

/* Lists, chips, callouts */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.chips li { margin: 0; }
.chips a, .chips span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: #fff; border: 1px solid var(--border); color: var(--ink); text-decoration: none;
}
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.callout {
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-sm);
  padding: 18px 22px; color: var(--warn-ink); font-size: 16px; margin: 0 0 20px;
}
.callout p, .callout li { color: var(--warn-ink); font-size: 16px; }
.callout p:last-child { margin-bottom: 0; }
.callout.info { background: var(--brand-tint); border-color: rgba(47, 95, 227, .25); color: var(--ink); }
.callout.info p { color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 20px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
table.data th { background: var(--surface); color: var(--ink); font-weight: 700; }
table.data td:first-child { color: var(--ink); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700;
  font-size: 17px; color: var(--ink); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--brand); font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 22px 20px; }
.faq-item .faq-a p, .faq-item .faq-a li { font-size: 16px; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { padding: 64px 0; background: linear-gradient(180deg, rgba(47, 95, 227, 0.05), rgba(47, 95, 227, 0.12)); }
.cta-band .section-head { margin-bottom: 28px; }
.cta-card { display: flex; flex-direction: column; gap: 6px; }
.cta-card .btn { align-self: flex-start; margin-top: 12px; }
.cta-card .small { font-size: 14px; margin-top: 10px; margin-bottom: 0; }

/* Legal / long-form */
.prose h2 { margin-top: 40px; font-size: 24px; }
.prose h3 { margin-top: 24px; }
.toc { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 32px; }
.toc ol { margin: 8px 0 0; columns: 2; font-size: 15px; }
.meta-line { font-size: 14px; color: var(--muted); }

/* Forms (shared with form pages) */
.form-card { background: var(--surface); border-radius: 20px; padding: 36px; box-shadow: -8px -8px 18px var(--shadow-light), 10px 10px 26px var(--shadow-dark); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .req { color: #dc2626; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.consent-field input { width: auto; margin-top: 3px; }

.page-tail { height: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 1; }
}
@media (max-width: 620px) {
  .section, .cta-band { padding: 44px 0; }
  .hero { padding-top: 132px; padding-bottom: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .card { padding: 22px; }
  .steps li { padding: 20px 18px 20px 62px; }
  .form-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card, .btn { transition: none; }
}

/* Internal build notes (remove when a form backend is connected) */
.dev-note { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13.5px; color: var(--warn-ink); margin: 0 0 28px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.btn-submit { display: inline-block; width: 100%; background: var(--brand); color: #fff; font-weight: 700; padding: 14px 24px; border-radius: 999px; border: none; font-size: 16px; font-family: inherit; cursor: pointer; transition: background .2s ease; }
.btn-submit:hover { background: var(--brand-dark); }
.confirmation { display: none; text-align: center; padding: 40px 24px; }
.confirmation .check { width: 56px; height: 56px; border-radius: 50%; background: rgba(21,128,61,.1); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }

/* Single-column hero (replaces the old two-column hero with duplicate CTA cards) */
.hero-main > div { max-width: 820px; }
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 95, 227, 0.12) 0%, rgba(47, 95, 227, 0) 70%); pointer-events: none;
}
.hero .container, .hero .container-narrow { position: relative; z-index: 1; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; }
.hero-points li { margin: 0; position: relative; padding-left: 24px; font-size: 15px; font-weight: 600; color: var(--ink); }
.hero-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
@media (max-width: 620px) { .hero-points { flex-direction: column; } }

/* Home hero: centered, one message, two buttons */
.hero-home { text-align: center; padding-bottom: 72px; }
.hero-home .lead { margin-left: auto; margin-right: auto; }
.hero-home .cta-row, .hero-home .hero-points { justify-content: center; }
.hero-home h1 { font-size: clamp(32px, 5.4vw, 54px); }

/* Spacing and measure */
.grid + p, .grid + .form-note, .steps + p, .table-wrap + p, .chips + p, .faq + p { margin-top: 22px; }
.section-head p, .lead { max-width: 680px; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.card ul.checklist { margin-bottom: 20px; }

/* Five-card grid: three on top, two centred below */
.grid-5 { grid-template-columns: repeat(6, 1fr); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > :nth-child(4) { grid-column: 2 / 4; }
.grid-5 > :nth-child(5) { grid-column: 4 / 6; }
@media (max-width: 960px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } .grid-5 > *, .grid-5 > :nth-child(4), .grid-5 > :nth-child(5) { grid-column: auto; } }
@media (max-width: 620px) { .grid-5 { grid-template-columns: 1fr; } }

@media (max-width: 620px) {
  .hero-points, .hero-home .hero-points { align-items: flex-start; align-self: center; }
  .hero-home .hero-points { display: inline-flex; }
  .hero-points li { text-align: left; }
  .eyebrow { border-radius: 14px; letter-spacing: 0.04em; font-size: 12px; line-height: 1.4; }
}
