/* ===================================================================
   Accurity Canada — shared careers styles
   Chrome (header/footer/buttons/type) lifted from the main site so
   the careers pages sit inside the same design system.
   =================================================================== */

:root {
  --accent: #7A2A82;
  --accent-deep: #571C5E;
  --accent-soft: #F5ECF6;
  --accent-tint: #FAF5FB;

  --ink: #18161C;
  --body: #54515C;
  --muted: #8C8895;
  --hairline: #E9E6EE;
  --surface: #F7F5FA;
  --surface-2: #FBFAFC;
  --white: #FFFFFF;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: 40px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.08; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 92px);
  letter-spacing: -0.02em;
  line-height: 1.0;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { font-size: 15px; padding: 13px 26px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(87,28,94,.18);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(87,28,94,.22); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
}
.link-back svg { transition: transform .2s ease; }
.link-back:hover { color: var(--accent); }
.link-back:hover svg { transform: translateX(-3px); }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 20px rgba(24,22,28,.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-img { height: 49px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.persona {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--body);
  transition: color .15s ease, background .15s ease;
}
.nav-links a.persona:hover { color: var(--accent); background: var(--accent-soft); }
.nav-links a.persona.active { color: var(--accent); }
.nav-cta { margin-left: 14px; }
/* ---------- Products dropdown ---------- */
  .nav-item { position: relative; display: flex; align-items: center; }
  .nav-item::after { content:""; position:absolute; top:100%; left:0; right:0; height:14px; }
  .nav-toggle { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; padding:9px 16px; border-radius:999px; font-family:var(--sans); font-weight:600; font-size:15px; color:var(--body); background:none; border:0; cursor:pointer; transition: color .15s ease, background .15s ease; }
  .nav-toggle svg { transition: transform .2s ease; }
  .nav-item:hover .nav-toggle, .nav-item:focus-within .nav-toggle { color:var(--accent); background:var(--accent-soft); }
  .nav-item:hover .nav-toggle svg, .nav-item:focus-within .nav-toggle svg { transform: rotate(180deg); }
  .nav-menu { position:absolute; top:calc(100% + 12px); left:50%; transform: translateX(-50%) translateY(8px); min-width:252px; background:#fff; border:1px solid var(--hairline); border-radius:14px; box-shadow:0 18px 44px rgba(24,22,28,.12); padding:8px; opacity:0; visibility:hidden; transition: opacity .18s ease, transform .18s ease; z-index:200; }
  .nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
  .nav-menu a { display:flex; flex-direction:column; gap:2px; padding:11px 13px; border-radius:10px; transition: background .15s ease; }
  .nav-menu a:hover { background: var(--accent-soft); }
  .nav-menu .nm-t { font-weight:600; font-size:14.5px; color:var(--ink); }
  .nav-menu .nm-d { font-size:12.5px; color: var(--muted); }
  .nav-menu a:hover .nm-t { color: var(--accent); }
  .menu-toggle { display: none; }

/* ---------- Section scaffolding ---------- */
section.block { padding: clamp(72px, 9vw, 128px) 0; }
.center { text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4.4vw, 58px); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 19px; max-width: 540px; margin: 0 auto 34px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-deep); }
.cta-band .btn-primary:hover { background: #f3eef4; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.cta-band .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta-band .btn-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Footer ---------- */
footer { background: var(--surface); color: var(--body); padding: 80px 0 36px; border-top: 1px solid var(--hairline); }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--hairline); }
.foot-brand .foot-logo { height: 40px; width: auto; display: block; margin-bottom: 4px; }
.foot-brand p { margin-top: 20px; font-size: 15px; color: var(--body); max-width: 280px; line-height: 1.6; }
.foot-contact { margin-top: 22px; font-size: 15px; line-height: 1.9; }
.foot-contact a:hover { color: var(--accent); }
.foot-col h5 { color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.foot-col a { display: block; font-size: 15px; color: var(--body); padding: 6px 0; transition: color .15s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.foot-bottom .copy { font-size: 14px; color: var(--muted); }
.foot-legal { display: flex; gap: 24px; }
.foot-legal a { font-size: 14px; color: var(--muted); }
.foot-legal a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--body); transition: all .15s ease; }
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
